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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.