Forum Discussion
StuartSmith
Power Participant
2 years agoCant get RANK to work correctly.
I have a table similar to ... and trying to create a calculated column Ranked by ID and AbsenceDate ID AbsenceDate Name Required Rank RANKX RANK 1 01/01/2024 Joh...
- 2 years ago
pls try this
- 2 years agoMeasure 3 =var dataource =CALCULATETABLE(SUMMARIZE(table3,table3[ID],table3[Name],table3[AbsenceDate]),ALLEXCEPT(table3,table3[ID]))var result =RANKX(dataource,calculate(max(table3[AbsenceDate])),,DESC,Dense)return result
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that thumbs up button 🫡👍
Daniel29195
Community Champion
2 years ago
Measure 3 =
var dataource =
CALCULATETABLE(
SUMMARIZE(
table3,
table3[ID],table3[Name],table3[AbsenceDate]),
ALLEXCEPT(table3,table3[ID])
)
var result =
RANKX(
dataource,
calculate(max(table3[AbsenceDate])),
,
DESC,
Dense
)
return result
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that thumbs up button 🫡👍