Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS Row Group + Column Group = RowNumber Issue

I'm back with another SSRS question :-)

I'm dealing with survey data. I have a procedure that's returning an organization's response counts per question. So my report is defined as Group on Organization for row and Group on answer for columns. Both the number of organizations and answers are variable. That's working as expected. I've tried adding a RowCount next to the organization so that I can show rank, but the fact that each org has one row per question means that I'm getting eight rows per org.

Here's an example:
Chart

Here is my report definition:
Chart
The rank expression is currently: =RowNumber(Nothing)

Ideally, the rank would be 1, 2, 3, 4, etc... I've tried scope to the row group, column group and nothing. No help.

Any assistance would be greatly appreciated!

like image 345
Bennett Dill Avatar asked Dec 01 '09 14:12

Bennett Dill


2 Answers

Had same frustrating issue; lots of time wasted. Eventually, this solution also helped:

=RunningValue(CountDistinct("YourTableName"),Count,"YourTableName")

Trick here is NOT to use the name of the group within the table/matrix, but the name of the table itself. And yes, one would think that using the table name for the scope in the function RowNumber should work, but it doesn't.

like image 75
Screaminskull Avatar answered Nov 03 '22 00:11

Screaminskull


Try using:

runningvalue(Fields!AnswerText.Value,CountDistinct,"NameOfOrganizationGroup") 

If its a matrix, change the name of the scope from the row scope to the matrix scope.

like image 3
Guy Miron Avatar answered Nov 03 '22 01:11

Guy Miron