Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my table i have hidden some rows where ever the null values are there . so if i write the expression for calculating number of rows [ RowNumber("Table") ], the row number which are hidden are also taken into consideration and serial number is not in the sequence


What I have tried:

RowNumber("Table")
CountRows("DataSet")
Count(Field!FieldName.value,"Datasetanem')
RowNumber(Nothing)
Posted
Updated 27-Dec-18 23:09pm
Comments
Richard MacCutchan 26-Dec-18 8:21am    
That is correct because the number of rows remains constant regardless of whether rows are visible or not.

1 solution

Please, read this: RowNumber Function (Report Builder and SSRS) - SQL Server Reporting Services (SSRS) | Microsoft Docs[^]
The most important is:
Quote:
RowNumber returns a running value of the count of rows within the specified scope, just as RunningValue[^] returns the running value of an aggregate function. When you specify a scope, you specify when to reset the row count to 1.

So, the only way to achieve this, is to group rows by non-nullable values. Or use the trick from: reporting services - SSRS Row Number within table excluding hidden rows - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900