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

Two level sorting - Matrix

Hello Datanauts! 

 

Been looking into the thread for a solution but couldn't find one. 

I need to sort the column of a certain matrix (Category 2). But the problem is it only sorts alphabetically (wherein I need "CY18 Budget" to come first, not "AMERICAS") . I did try to include a Index as the old matrix allow multiple sorting but the new BI set up can't seem to have that kind of feature ( I may be wrong and just don't know how). 

 

 

Data.JPG

 

I did create an "index" an place is as second level hierarchy hoping that I can use it as a sorting method but didn't work as the "index" doesnt show on the list. But rather only shows when I click the next hierarchy.

 

 Index.JPG

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @FuzzyYabs

 

You may try to add an index column as requested. Then use Sort by Column as below picture.

 

1.png

 

Regards,

Cherie

 

 

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-cherch-msft
Employee
Employee

Hi @FuzzyYabs

 

You may try to add an index column as requested. Then use Sort by Column as below picture.

 

1.png

 

Regards,

Cherie

 

 

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @Anonymous,

 

Did this. However, that would mean I would be showing the index as first column's values. The idea is that I should be able to sort the matrix using the index but still showing the "Category2".

 

By the way, on your example, the index was a data. The index I created is a measure. Do you think this affects that? 

Hi @FuzzyYabs

 

Yes, It's better to use index column instead of measure if you want to use 'sort by column'. You may add index column in Query Editor or create it with Dax. 

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

By "Budget", what do you mean? Value ($)? or ?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

 

Oh No. budget = CY18 BUDGET. It's a value under "category2". Apologies for the jargon. 

 

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.