Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Row Number for every row

Author  Topic 

ATexas
Starting Member

3 Posts

Posted - 2010-02-23 : 15:39:45
I want to get the row number for every row in a table like this:

1) Group 1
2) . . . Detail 1
3) . . . Detail 2
4) . . . Detail 3
5) Group 1 Total

I have tried using
=RowNumber(Nothing)
=RowNumber("Tablix1")

but the result is:

3) Group 1 (puts the number of details in the group)
1) . . . Detail 1
2) . . . Detail 2
3) . . . Detail 3
3) Group 1 Total (puts the number of details in the group)

It only puts the row number for the detail lines and this will not give me an accurate count of the number of rows displayed on the report.

How can I get an accurate row number for Every Row regardless if the row is a group heading, group total or detail row?

Thanks!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-24 : 10:20:35
you mean you want row number to go continuos regardless of levels?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

ATexas
Starting Member

3 Posts

Posted - 2010-02-24 : 10:34:42
Yes, I want the actual row number for each row, regardless of levels.
Go to Top of Page
   

- Advertisement -