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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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