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 ...
- 4 years ago
ColinH here is your measure, ofcourse you already have the solution but we always want to avoid adding a column (where possible):
Rank Team Season = RANKX ( FILTER ( ALL ( TeamSeason ), TeamSeason[Season] = MAX ( TeamSeason[Season] ) ), CALCULATE ( MAX ( TeamSeason[AllSeasonsFiling] ) ), , DESC )
parry2k
4 years agoSuper User
ColinH here is your measure, ofcourse you already have the solution but we always want to avoid adding a column (where possible):
Rank Team Season =
RANKX (
FILTER (
ALL ( TeamSeason ),
TeamSeason[Season] = MAX ( TeamSeason[Season] )
),
CALCULATE ( MAX ( TeamSeason[AllSeasonsFiling] ) ), ,
DESC
)
ColinH
4 years agoFrequent Visitor
That's fantastic also! It works perfectly. Again, many thanks for being patient with a noob here.