Rownumber() function of RDLC report isn't correct
Asked Answered
H

3

5

Below figure is my report. This tablix has 10 row from dataset.

It's grouped by TOOL_CODE and TYPE for get count. At "Count" Column is use this expression ..

   = Count("Detials")  

"Detials" is a name of group(by TOOL and TYPE)

And No.Column I use expression by Rownumber() function like these

   = Rownumber(Nothing)

It's wrong because Rownumber() refer to items in dataset. It's not count from row which is display.

enter image description here

Homebody answered 2/9, 2015 at 3:36 Comment(1)
interesting! I guess you could add custom function to increment for each actual report row.Progressionist
H
7

I solved this problem.

At "No." Column use this expression

  =RunningValue(CountDistinct("TableName"),Count,"TableName")
Homebody answered 3/9, 2015 at 1:57 Comment(0)
O
7

This works:

=RowNumber(Nothing)

I like it also for the fact that it will number grouped sets of data independently, so you know the total in each group.

Olecranon answered 6/9, 2018 at 6:2 Comment(0)
K
0

You can just add an expression at the detail level of =RowNumber("[tablename]")

Kaolack answered 12/7, 2017 at 20:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.