Forum Discussion
Sandeep13
3 years agoHelper III
Rank function Based on ReportedDate like YYYYMM
Hi All, I have 2 columns reporting_mth and Amount, I want to create rank based on reporting_mth and sort data based on amount. Now If you see i have 202203 and 202212 in my data. I am expecti...
Ahmedx
3 years agoSuper User
Order =
VAR _t = LEFT( MAX( [reporting_mth],4))
RETURN
RANKX(
FILTER(ALL('Table'),
LEFT('Table'[reporting_mth],4)=_t),
[reporting_mth],,DESC)