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
josipinho
Helper II
Helper II

Matrix sort by value and dimension default

Hello,

 

I have a default order in which my dimension atribute has to be displayed, but I want to order them by total of values. 

To make it easier to understand heres a screenshot of how things look:

 

 

sort_sc.png

 

 

I want the name of countries (ZEM_DZS) to be sorted by totals of maska_prihod, but I want to keep the default order of my age groups (GDG_NAZIV), so from 0-7, 7-14....84-94 should always be displayed in that order.

 

Any ideas how to acomplish this ? Preferably with DAX only, but if necesarry new collumns are fine aswell...

 

 

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@josipinho

 

In your scenario, you need to create a measure and put it in the Matrix visual. Then you can sort it ascending as following screenshot.

 

Matrix sort by value and dimension default_1.jpg

 

Best Regards,
Herbert

View solution in original post

2 REPLIES 2
v-haibl-msft
Employee
Employee

@josipinho

 

In your scenario, you need to create a measure and put it in the Matrix visual. Then you can sort it ascending as following screenshot.

 

Matrix sort by value and dimension default_1.jpg

 

Best Regards,
Herbert

worked like a charm ! Can't belive i didnt think of it :S Thank you ! 🙂

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.