Forum Discussion
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.
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
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 )
1 Reply
- TooOldFrequent 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 )