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

Auto-exist challenge

Hello 
With the the help of the community I could create a sport result ranked table. 
In one table the ranking can be filtered on
- month
- week
- day
and based on date further filtered on gender and nation. Everything works as expected. The ranking is based on userId (unique) and TotalCalculatedPower.

TooOld_0-1656410073970.png

 


Problem
A visitor wants to search for a participant with name and the ranking shouldn't change in this case. The auto-exist Dax feature is the reason I assume.
How can I calculate a correct ranking which includes the userId, but ignoes it on UserName filtering ?

Attached test report
https://1drv.ms/u/s!AmigVHVyD6uLmckr-FyHj89fkRpLqg?e=riQZa0

1 ACCEPTED SOLUTION
TooOld
Frequent Visitor

I found the solution on replacing ALLSELECTED with ALLEXCEPT.

_mRank = RANKX ( ALLEXCEPT( RfvRefined, RfvRefined[Gender], RfvRefined[MonthNo], RfvRefined[WeekNo], RfvRefined[Start], RfvRefined[ContestId], RfvRefined[Nation] ), [_max],, DESC, DENSE )





View solution in original post

1 REPLY 1
TooOld
Frequent Visitor

I found the solution on replacing ALLSELECTED with ALLEXCEPT.

_mRank = RANKX ( ALLEXCEPT( RfvRefined, RfvRefined[Gender], RfvRefined[MonthNo], RfvRefined[WeekNo], RfvRefined[Start], RfvRefined[ContestId], RfvRefined[Nation] ), [_max],, DESC, DENSE )





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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.