Looking for a way to show a row number on a report. The trick here is the rows are aggregated to show sums. The RowNumber() function works great, but it totals every row used in the sum, so while there may be 34 rows, I am only displaying one total row and thus would like the row number on the report to say 1. I had the thought to try this with a variable and custom code function, but couldn’t figure out the syntax.
Yes. RowNumber(Nothing) and RowNumber(“GroupName”) give the same output. I assume this means that the rows are created to make the sum and then hidden before the final result. Here is an idea of what I am looking for and what I get now.
Yeah, SSRS is funny, and I always forget the exact tricks until I do it again.
But as long as the groupings don’t cause duplicate entries, you should be able to just drop a field in the correct Group row and have it aggregate correctly. If you add in a Detail group and show it, what do you get? Is it the individual records or just a repeat of the group above?