Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mrbartuss
Helper I
Helper I

Sorting Matrix Columns by Measure Total

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

Screenshot 2025-03-05 190024.png

 

 



7 REPLIES 7
v-tsaipranay
Community Support
Community Support

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

v-tsaipranay
Community Support
Community Support

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.

v-tsaipranay
Community Support
Community Support

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.

Anonymous
Not applicable

Hi @mrbartuss ,

One not-so-simple way to do this is to replace all the columns in your matrix with measures.

vzhouwenmsft_0-1741227096128.png

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.