RowIndex() odd(?) behaviour

Hi All,

i have a question regarding RowIndex() function. When i add it to a table, it gets stretched.
For example i have a table where i get months from create date - MonthNumberOfYear([Create Date])
it displays values from 1 to 12. Now if i put RowIndex() in another collum in this table i get it stretched to 500000 rows… why it doesnt simply display values 1-12? (or 0-11)


Iscario (BOB member since 2012-09-03)

You’re confusing rowindex() with Linenumber().

Rowindex() returns the row from the database, e.g. the source data.

Use linenumber() if you want the line in a report block.

HTH

NMG


mcnelson :uk: (BOB member since 2008-10-09)

… ok thx.

There is no mentioning about this in either Webi or Documentation…

Thansk once again


Iscario (BOB member since 2012-09-03)

It’s in the “Web Intelligence Formulas, Functions & Calculations” document, but it’s a bit opaque:

This topic addresses the difference between Rowindex and Linenumber a bit better:

HTH

NMG


mcnelson :uk: (BOB member since 2008-10-09)