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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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.