views:

221

answers:

4

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!

A: 

Best thing to do here, is make the Rank column equal to =RowCount()/8

Since your sure each visible row contains a total of 8 rows, this should work fine.

Jon
Jon, thanks for the reply. The issue is that I forgot to mention that the number of answers is variable... I neglected to mention that...
Ben
A: 

Add another rank column next to the existing one and put another expression in that one which takes the value from rank (rowcount?) and divide it by 8. Then make the old rank column invisible.

Gerrie Schenck
A: 

I seem to have found a solution, but it feels like a hack... I'm leaving this unanswered to see if someone else can provide a better solution (read less hackish).

My Rank Expression is now:
=RowNumber(Nothing)/Count(Fields!AnswerText.Value)

Everything seems to be ok. I suppose I should IIf(Count... = 0, Then RowNumber, else what I've got...

Ben
With nothing else showing up, this approach is working even though it seems like a hack. To me, if it's displaying aggregated data, it should RowNumber on the aggregate NOT the raw data...
Ben
A: 

Are you absolutely certain that using RowNumber("NameOfOrganizationGroup") doesn't work?

Click on the matrix, click the upper-left corner selection box to select the entire thing, then right-click on the selection border and get properties. Switch to the Groups tab and look at the names of the groups in the Rows section. That's what goes in the scope of the RowNumber() function.

If you already know this and tried it, my apologies—I didn't mean to assume you didn't know. It's just not 100% clear from your question that this is not the solution.

Emtucifor