Sorting matrix based on aggregation in ssrs 2008 - sorting

I have a matrix in ssrs 2008 like below:
Reason #ofCancellations
[Reason] Count(Fields!CancelID.value)
It is working well. What I want is to sort this matrix based on the count columns in descending order. Normally, I was doing it by going Tablix propertoes -> Sorting. This time it does not let me write Count(Fields!CancelID.value) there, giving me error like Aggregations are not permitted while sorting a matrix. I prefer to do the sorting on the ssrs. Any advice would be appreciated.

Try setting the sorting in your Row Group. Go to Row Group pane and right click the group Reason.
Select Group properties... and go to Sorting tab. Add a new sorting by expression and select A-Z for ascending or Z-A for descending.
=Count(Fields!CancelID.value)
Let me know if this helps.

Related

SSRS Sorting a data in a column in Tablix SSRS

I Need to Sort the data in column/columns in Tablix(SSRS2016). The Sorting is working when I am opening only that table.rds . When i am executing the whole Project and opening that subreport it gives a error.
"one or more Parameters were not specified for the subreport, 'subreportname', located at: /__rdlname"
I don't understand why I Need a Parameter when I Need just to sort the data in column.
Can somebody help me ?
I did a right click on column Header -> TextBox properties -> Interactive Sorting
Enable interactive sorting on this text box
As I want to sort with the Groups
Choose what to sort:
I have Chosen Groups.
Then Sort by Field which was in drop down list.
in the end
OK.

How To Sort Specific Column Data in SSRS Tablix

I am using Visual Studio 2012 for SSRS and my queries come from using Microsoft SQL Server 2012.
My question below pertains to SSRS and sorting.
In my Tablix, I currently have the Row Groups set up as Group -> Manager -> Owner -> Status Description and when it pulls the data from the data from the dataset, it pulls in fine. In the tablix, basically everything is a drilldown and each of the Row Groups (except Group) is hidden initially and can be displayed/toggled by the report item ahead of it. In the Status Description part, when it pulls in the records, it pulls them in as Active, Completed, In Process...which is fine because they are pulling in ABC Order.
But I want to show that specific column when it pulls in as Active, In Process, Completed...in the way that a specific file would go through the process. These are only 3 specific ways the data could pull it as, there are more, but these are the most common seen. How do I sort that individual column to get it in the way I mentioned above or a way that I can customize the sorting based on how I want it to be seen?
You can use expressions in the sort order to get the sorting exactly as you'd like.
What you can do is use the SWITCH statement to number your output in the order you want. For example I have 3 statuses: "Complete", "On Hold" and "Word at Risk". Normally they would either sort as Ascending or Descending... but if I enter this in the Sort Order Formula I can change that:
=SWITCH(
Fields!PRS_STATUS.Value = "Complete", 1,
Fields!PRS_STATUS.Value = "Word at Risk", 2 ,
Fields!PRS_STATUS.Value = "On Hold", 3)
And now it orders 1,2,3 aka Complete, Work at Risk, On Hold.
You can put this switch in a larger switch statement to have multiple sort orders depending on a criteria or parameter.

How Sorting Multi-Column Grouping in Stimulsoft Report

I work on a report with Stimulsoft Report V2011.3
in my report I have a GroupHeaderBand that have 2 column for grouping data (like under)
{Tbl1.c1}{Tbl1.c2}
then i set Sort Direction equal to Descending (Sort Direction apply on whole of GroupHeaderBand, this means that the both of Tbl1.c1 & Tbl1.c2 are Descending)
but I want Tbl1.c1 be Desc & Tbl1.c2 be Asc.
how do that?
It's better to add two Group Headers with one column for each.

Trying to SORT table on Expression

I have two tables in my report. Grouped on fields DatePaidFinancialYear and then SupplierName.
I have removed both sorts on the groups themselves. There is also no sort on the tablix.
I then have a COUNT IF in one table that does the following -
=Count(IIF(Fields!DaysLateCategory.Value = "Over10Days" , 1, Nothing))
and the below in the other
=Count(IIF(Fields!DaysLateCategory.Value = "Over30Days" , 1, Nothing))
This gives me below -
I want to sort so that the highest number is at the top. I can't work out how to do it.
When I try and sort by my counts via the Tablix - I get the following error -
A sort expression for the tablix 'Tablix5' includes an aggregate function. Aggregate functions cannot be used in data row sort expressions.
Please advise
IRC - you should remove the table sort and sort using the same expression on the Group properties
Excellent. I could have sworn I tried this but obviously not. All working now.
Thanks

Qlikview chart sorting doesn't always work for users

I have several Qlikview charts that have interactive sorting enabled but the odd part is some columns can be sorted ascending or descending and others can only be sorted one way. Nothing happens if you click on the column again.
Each field has a proper sort defined, it looks like a bug - anyone else experience this?
Thanks
Dan
It happens often when on the sort tab of the properties it has selected more than one way of sorting for example you have a field that has sort as text and numeric value

Resources