Use Custom Sorting
You can use the custom sort options to override the
default sorting behavior. For example, you can sort items based
on a measure other than the default measure, or based on a row or
column other than the summary values of the opposite axis. The custom
sort options also let you sort by attributes.
By default, items in nested sets are sorted based on the values of the innermost nested row or column. You can use custom sorting to sort nested or stacked sets differently than this default.
For an example of custom sorting, see Example - Perform a Custom Sort.
Before you begin
You must select a set to perform a custom sort.
Note: When a selection-based set contains members from
different levels, sorting the set by an attribute that is not common
to all levels may result in a server error.
Similarly, if you append a member from a different level to a selection-based set that is sorted by attribute, the same error may occur.