Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 171 | |
| 136 | |
| 119 | |
| 80 | |
| 54 |