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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
bo_afk
Post Patron
Post Patron

Sort matrix by values in a column

Is it possible to sort a matrix by the values in a particular column from highest to lowest and vice-versa?

e.g. I want to see the highest values for column A, then see highest for column B etc.

I can see that we can do it in a table but I'm struggling to do using a matrix visual.

Any ideas?

Thanks

afk

5 REPLIES 5
v-zhenbw-msft
Community Support
Community Support

Hi @bo_afk ,

 

How about the result after you follow the suggestions mentioned in my original post?

Could you please provide more details or expected result about it If it doesn't meet your requirement?

If you've fixed the issue on your own please kindly share your solution. If the above posts help, please kindly mark it as a solution to help others find it more quickly.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@bo_afk , Not very clear. But you have the option under three .., for rows and values. If the column means to pivot. By default it will sort ascending or on the sort column and you can not switch that. Usually for descending sort we create a sort column like that and sort the column on that

 

example

date 1 = date

date 1 sort = rankx(all(Date), Date[Date],,desc )

 

Now we sort date 1 on date 1 sort and use that on mtarix header

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

Hi @amitchandak,

Suppose the matrix looks like the below. Market is my row value and category is my column and then I have a measure as the values. 

matrix viz.JPG

For example, I want to be able to sort category A by that measure so that AT is top of the list (14%), followed by HU and then DZ (7%).  

Is this possible?

Hi @bo_afk ,

 

You need to click the three points of the matrix table in the upper right corner. Then sort by measure.

 

sort1.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

MattAllington
Community Champion
Community Champion

I think you can do it using Q&A. Add the Q&A visual and ask for what you want and include "sort by x, then sort by Y". You will have to test it. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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