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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Matrix - sort by column and row totals, descending

I am trying to use a matrix to display products in the first column (row labels) and cities as column headers across the top.  Revenue will be in the table.  I would like to sort the row totals descending (largest revenue product on the top and smallest revenue product on the botom).  I would like to also sort the city column totals in the bottom row descending (largest city on the left and smallest city by revenue to the right).  I can do this in a pivot table in excel,  but can not figure out how to sort both columns and rows descending based on the totals in Power BI.  

 

I have tried other ideas in other forum posts, but nothing seems to allow for multiple sorting in a matrix.  I also need the order to be dynamic as different filters will change the order of the rows and columns

 

Please advise with any solutions/ideas on how to sort by row and column in the matrix or if another visualization will provide this result.  

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Multiple sorting is not allowed in matrix yet. You can sort row or values or values grand total(In case of column /pivot) .

In case column(pivot) need sort desc. You need to have sort column that will make it sort desc.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors