Forum Discussion
Sort Column in a matrix by another column
https://drive.google.com/file/d/1kJpyOsEsR5Yl-xr0nUY7Ds-mJNT-bMXe/view?usp=sharing
How to sort the column in matrix ,in this case Business Unit ,by Salary (The Business Unit with highest salary should come first)
9 Replies
- amitchandakSuper User
Anonymous , You can sort on total columns(Values) in matrix and on rows columns
- AnonymousNot applicable
How to sort on columns? In this case i want to sort it by Business Unit which is column.
The Business unit with highest salary should come first.
- AnonymousNot applicable
Hi Anonymous You can do the following:
1. Go to More Options by clicking on the ellipsis icon (three dots) on the matrix visual.
2. Select Sort by > Salary
3. This is the output.
Hope this answers your question.
- AnonymousNot applicable
Thanks for reply, but my requirement is the Business Unit with highest salary should come first, in this case Houston city should be displayed first, then New York city, then Seattle and Los Angeles
- v-kelly-msftCommunity Support
Hi Anonymous ,
Create a column as below:
Rank = RANKX('Human Resources',SUMX(FILTER('Human Resources','Human Resources'[Business Unit]=EARLIER('Human Resources'[Business Unit])),'Human Resources'[Salary]),,DESC,Dense)Then duplicate column "Business Unit" and choose sort by rank:
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!