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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Raghu561
New Member

How to sort the rows in the mettrix by Measure values.

Hi I am looking to sort the rows based on the rank values. i tried different methods suggested but not sure how to do a work around.

so..

I have a matrix visual has below 

Raghu561_2-1684665959085.png

rank by terrritory is measure based on the territory % value, it ranks the values from 100% to down.
rank by terrritory is working fine but i need the rank values to be sorted in Asc how can i do that.


I created a Metrix based on the multiple measures in a single measure

Raghu561_3-1684666319207.png

Metrix in rows and Columns in the Columns shelf are comming from the Custome table(MetrixTable) where the metris=x names and rowIDs are presenst
MetrixTable

Raghu561_4-1684666535239.png

 

and the "ALL Measure" is a measure where all the measures plased based on the Row ID of a Matrix table with a switch function like 

 

Switch(

True(),

SELECTEDVALUE('Table'[Row ID ]) = 1,[RankByTerritory]

SELECTEDVALUE('Table'[Row ID ]) = 2,[Territory]
.........)

how can i sort the rank value in the metrix.....?

Please respond

 

 

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.