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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Omesh
Helper I
Helper I

How to sort Matrix Visualizations

I want to sort a matrix visualization in Power BI with three columns: two text and one numeric columns. I need to sort it based on the Rank column while keeping the State column in its original order. Essentially, I need to sort based on two columns: State (text) and Rank (numeric).
Data:

State

City

Rank

Maharashtra

Nagpur

4

 

Thane

3

 

Mumbai

1

 

Pune

2

MP

Indore

2

 

Ujjain

4

 

Bhopal

1

 

Jabalpur

3

 

Output:

State

City

Rank

Maharashtra

Mumbai

1

 

Pune

2

 

Thane

3

 

Nagpur

4

MP

Bhopal

1

 

Indore

2

 

Jabalpur

3

 

Ujjain

4

4 REPLIES 4
ValtteriN
Community Champion
Community Champion

Hi,

Can you describe the issue a bit more? The default sorting seems to solve this:

Data:

ValtteriN_0-1713765086534.png


End result:

ValtteriN_3-1713765145617.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




The text field comes from a table, and the rank is a measure based on a numeric value from table

ValtteriN
Community Champion
Community Champion

Hi,

by clicking on the yellow area in matrix the matrix is sorted. Here the column2 is a text field from table and measure 25 is numeric measure. 

ValtteriN_0-1713851884249.png

You can add column sortung in the data:

ValtteriN_1-1713851938570.png

 

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for answering but it not resolve my question, as seen you are just sorting only on measure because in your POC table data is already sorted. try to take more data in unsorted order and applying custom sort on state & measure

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.