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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
YunJ
Post Prodigy
Post Prodigy

How to sort by two columns?

Hi,

I made a matrix which is sort by GMV, but I also want make a sort for Phase, which should be first Presales, and second Bigday.

1.png

Maybe I can create a new table which only contains Presales and Bigday, and add a number column, then make a relationship between these two table. But I'm wondering is there an easier way to fix this?

 

Thanks for your time.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @YunJ,

You can create a calculated column to use the ISONORAFTER function to ranking multiple fields and get the rank index. Then you can use this new field as 'sort order' to achieve your requirement:

Sorting by multiple columns  

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @YunJ,

You can create a calculated column to use the ISONORAFTER function to ranking multiple fields and get the rank index. Then you can use this new field as 'sort order' to achieve your requirement:

Sorting by multiple columns  

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@YunJ , As of now you can sort only on one column/measure in Matrix

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.