Click here to Skip to main content
15,885,896 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi, all i have a problem with sequence number function .It starts number from 5 as it is counting the Hidden rows number when i am using function RowNumber(Nothing).

IS there any function that count only visible row in ssrs reports?

as serial number is not possible using sql query. I have tried using RowNumber() in sqlserver but problem with that is i am ordering row with different column and cant genrate row number with same colum as it is generated more time ..

thanks and regard
Posted

1 solution

Hi Jigs,

try this

SQL
=RunningValue( IIf(Fields!StepID.Value = 5, Nothing, Fields!StepID.Value)
    , CountDistinct
    , "Tablix1")


change the condition in IIF statement with the condition you used to hide the rows, if it doesn't work please provide me with the result set in details.

Regards,
Ahmad
 
Share this answer
 
v2

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