SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS Matrix Sort query


SSRS Matrix Sort query

Author
Message
abigail.tomlins
abigail.tomlins
SSC Journeyman
SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)

Group: General Forum Members
Points: 77 Visits: 44
Good Afternoon

I have a matrix within SSRS I am trying to sort on. My matrix looks like as below:

--Months--
Month A Month B
Report A 12 32
Report B 34 54
Report C 11 2
Report D 6 45
Report E 15 12

Where the numbers represent number of views. The month titles are dynamic so they update when a parameter is amended. Please can you tell me how to sort the list of report names by the column title Month B (this is a grouped filter where the data comes from a source called MonthNumber.

Thank you in advanced.

Abbie
Scott Murray-240410
Scott Murray-240410
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1667 Visits: 3145
you should be able to go to the group properties for month then sort on the month field
abigail.tomlins
abigail.tomlins
SSC Journeyman
SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)

Group: General Forum Members
Points: 77 Visits: 44
Hi Scott

Thank you for your reply, unfortunately it won't sort by month as within the dataset itself month 4 and 5 are under one column (so it doesn't sort correctly) namely 'MonthNumber'
abigail.tomlins
abigail.tomlins
SSC Journeyman
SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)

Group: General Forum Members
Points: 77 Visits: 44
I've managed to fix it by using the following sort fx within the row group:

=Sum(IIf(MonthName = ParametersMonth, Views, 0))
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search