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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
mrbartuss
Advocate I
Advocate 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
Anonymous
Not applicable

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

Anonymous
Not applicable

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 ,

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.

Anonymous
Not applicable

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.