March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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)
Hi @Antmkjr 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.
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
Hi @Antmkjr ,
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,
Kelly
Did I answer your question? Mark my post as a solution!
Brilliant !
One more question, if we are putting a filter on department, how to still make it work?
Hi @Antmkjr ,
Sorry,I couldnt find a good way to realize it,currently matrix only support column ranking,row ranking can only be fixed by my trick.
I can only do a ranking measure to show the ranking,but I cant make it rank dynamically per your request:
measure_Rank = IF(ISINSCOPE('Human Resources'[Departmets]),BLANK(), RANKX(ALLSELECTED('Human Resources'[Business Unit]),CALCULATE(SUM('Human Resources'[Salary]),ALLEXCEPT('Human Resources','Human Resources'[Business Unit],'Human Resources'[Departmets])),,DESC,Dense))
Check my .pbix file attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Thanks alot for your time, let us wait and see if someone can help any further!
Hi @Antmkjr ,
I have a deep thought about this case,and I'm 99% sure that columns cant be sorted dynamically based on selection in matrix.
You could propose your idea with comments via below link to make this function realize soon.
https://ideas.powerbi.com/ideas/
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@Antmkjr , You can sort on total columns(Values) in matrix and on rows columns
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |