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
Manne_DE
Frequent Visitor

Sorting a matrix visual by 2 columns/measures - creating a rank with 2 measures

I have a matrix visual in a client reporting, where I am showing the revenue by client and across the countries where the client had spent. 

I would like to sort this, so that the client which has spent in many countries is at the top, decsending by total spend value.

I have a created a measure which provides me with the info in how many countries the client had spend and I also have the total revenue. 

However, I had not been able to create a ranking measure, which combines these 2 info and sorts the info accordingly.

Manne_DE_0-1698422824308.png

 

Here is screen shot of my matrix visual - the client 577 should be listed at the top, followed by the client 263 and then client 447.

 

I have a test file created, but I cannot see the upload icon to attach it to the post ??

 

Any support the community can provide, is greatly appreciated.

 

Thanks, Manfred

 

1 ACCEPTED SOLUTION
Manne_DE
Frequent Visitor

I have now found a way to accomplish this, by using the new RANK function, where I can do a orderby on 2 measures/field. This worked out very well and I have ended up with exactly what I had been looking for.

 

Thanks 

View solution in original post

3 REPLIES 3
Manne_DE
Frequent Visitor

I have now found a way to accomplish this, by using the new RANK function, where I can do a orderby on 2 measures/field. This worked out very well and I have ended up with exactly what I had been looking for.

 

Thanks 

MageVortex
Helper I
Helper I

I would probably create a measure that does some sort of multiplicative sum to determine the way I want it ordered, then sort by that measure, but that would probably not work how I wanted in quite a few different instances, so I'm interested in seeing a superior method of resolving this. 

vanessafvg
Super User
Super User

you need to use your own cloud storage and provide the link.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
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!

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