Forum Discussion
ColinH
4 years agoFrequent Visitor
RankX problems
Hi, I struggle with RANKX when filtering. Can someone help me with this problem, please? I have a table that lists soccer seasons with teams. I've created a new column (AllSeasonsFiling) that, when ...
parry2k
Super User
4 years agoColinH I think this is what you want
Rank Team Season =
RANKX (
FILTER (
ALLSELECTED ( TeamSeason ),
TeamSeason[Team] = MAX ( TeamSeason[Team] )
),
CALCULATE ( MAX ( TeamSeason[AllSeasonsFiling] ) ), ,
DESC
)
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- ColinH4 years agoFrequent Visitor
Thank you but no, that's not correct. Yours returns a value of 1 for 1993-94 when it should have been 4. I really appreciate you taking the time to reply though.