Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Is it possible to sort columns in a Power BI matrix visual by the total in descending/ascending order? I've noticed this option is available for rows, but not for columns.
I attempted to create a RANKX column in the Product table to use as a "Sort by Column," but it only updates during model refresh and isn't dynamic when applying slicer filters.
Any suggestions would be appreciated
Hi @mrbartuss ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
No, the issue has not been resolved
Hi @mrbartuss ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @mrbartuss ,
Thank you for reaching out to the Microsoft Fabric Community.
Power BI currently does not support dynamic sorting of matrix columns by measure totals. Sorting is only available for rows, not columns.
The workaround involving individual measures works in static scenarios, but as you've noted, it's not dynamic and doesn’t respond to slicers or filter changes.
As an alternative, consider:
Swapping columns to rows, where dynamic sorting is supported.
Exploring custom visuals from AppSource that offer column-sorting capabilities.
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thankyou.
Hi @mrbartuss ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @mrbartuss ,
One not-so-simple way to do this is to replace all the columns in your matrix with measures.
Best Regards
Thank you. Unfortunately it won't solve the issue as it is not dynamic - columns would need to be ordered manually. Additionally, when filters change, the order might be different
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |