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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Bruin87
Frequent Visitor

RankX in unbalanced parent-child hierarchy

Hi,

my goal is to show the ranking of a Tradelane within its parent entity.

 

The visual i got is 50% correct 🙂

Within the (level2) Road/Rail section all Tradelanes are ranked correctly.

However if you have a look on the other level 2 aggegration (Air/Ocean) the ranks are always 1. I don`t unterstand this behavior, as there is no special calculation for this part of level2.

 

Tradelane Problem.jpg

 

The measures:

Bruin87_1-1649390757048.png

 

Bruin87_2-1649390786677.png


Bruin87_3-1649390840511.png


Bruin87_4-1649390941808.png

 

Bruin87_5-1649390965481.png

 


 


 
Would be great if anyone has a tip
 
Thanks in advance
Bruin87
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

This is too complext to follow ( too many measure nesting levels)  but it feels like you should use ALLSELECTED() or ALLEXCEPT() here instead of ALL()

 

Please provide sanitized sample data that fully covers your issue.


View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

This is too complext to follow ( too many measure nesting levels)  but it feels like you should use ALLSELECTED() or ALLEXCEPT() here instead of ALL()

 

Please provide sanitized sample data that fully covers your issue.


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.