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 🫡👍
Ahmedx
Super User
2 years agopls try this
StuartSmith
Power Participant
2 years agoAdjusted the above and this worked. 🙂
RANK =
VAR _t1 = 'Table: Absence Master List'[Absence Recording ID]
Return
RANKX(FILTER('Table: Absence Master List', 'Table: Absence Master List'[Absence Recording ID] = _t1),'Table: Absence Master List'[Absence Day],,ASC)