SSRS Report Custom Sort Order

Aritra B

I am having some problem for a custom sorting required for one of row groups that I have in a SSRS table.

The logic for the custom sort order -

If the row group value contains a particular value then it should always be displayed at the bottom and all the other values have to be displayed in the ascending order.

For e.g. -

Suppose from the list of values A,E,G,D,C,and F, "D" should be always be displayed last and the other elements are to be sorted in asc order.

So, the above list should be sorted in the following order - A,B,C,E,F,G,D

Or if the list of elements is - P,J,M,N,D,C,K the required sort order is - C,J,K,M,N,P and D.

This logic has to be implemented for the row group data which gets displayed in the report.

Would appreciate if someone can help me out on this.

Thank you.

alejandro zuleta

Try using the following expression in the Sorting setting.

=IIF(
Fields!YourField.Value="D","ZZZZ" & Fields!YourField.Value,
Fields!YourField.Value
)

This will sort your group if you don't have groups whose four first letters are ZZZZ.

Let me know if this helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

SSRS Report Custom Sort Order

From Dev

Custom Number Format in SSRS Report

From Dev

SSRS - Report Manager custom url

From Dev

Crystal Report group sort order

From Dev

SSRS Report Multiple Pages Tablix Order

From Dev

SSRS: Subscription column order differs from Report

From Dev

Database Custom Sort Order

From Dev

Database Custom Sort Order

From Dev

SSRS - Custom parameter layout was removed from the report

From Dev

Sort list by a given custom order

From Dev

custom sort order on array of objects

From Dev

SQLALchemy custom integer sort order

From Dev

Custom sort order for an enum field

From Dev

Sort array by keys in custom order

From Dev

Sort an array in custom alphabetical order

From Dev

Sort Custom Objects in Specific Order

From Dev

Sort a php array in a custom order

From Dev

custom taxonomy sort order not working

From Dev

custom sort order on array of objects

From Dev

Sort JSON based on custom sort order array

From Dev

How to sort SSRS Matrix report by Grand total field

From Dev

SSRS: How can I accessing report parameters from custom assembly?

From Dev

How to pass nullable field to custom function in reporting services (SSRS) report?

From Dev

Sort columns in a different order from the group in SSRS matrix

From Dev

create report of datagrid in c# with custom column and custom order

From Dev

Sort ArrayList of objects by field in custom order

From Dev

jQuery sort HTML tables with custom order

From Dev

Custom sort-order in Xquery search options

From Dev

How to sort enum using a custom order attribute?