Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
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!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
37 |