Forum Discussion
Rank based on three fields
- Anonymous7 years ago
HI Anonymous,
According to your description and snapshot, you want to rank datevalue based on current 'schoolid' and 'yearid' category, right?
If this is a case, you can try to use following calculated column formula:
RANK = COUNTROWS ( FILTER ( ALL ( Table ), Table[SchoolId] = EARLIER ( Table[SchoolId] ) && [YearId] = EARLIER ( Table[YearId] ) && Table[DateValue] < EARLIER ( Table[DateValue] ) ) ) + 1Regards,
Xiaoxin Sheng
Hello Anonymous,
pls send me the output you want for your data pls just type it in excel and send me that, so i can understand what you exactly want.
I'm looking for RANK field which is in attached screenshot.
- Anonymous7 years agoNot applicable
HI Anonymous,
According to your description and snapshot, you want to rank datevalue based on current 'schoolid' and 'yearid' category, right?
If this is a case, you can try to use following calculated column formula:
RANK = COUNTROWS ( FILTER ( ALL ( Table ), Table[SchoolId] = EARLIER ( Table[SchoolId] ) && [YearId] = EARLIER ( Table[YearId] ) && Table[DateValue] < EARLIER ( Table[DateValue] ) ) ) + 1Regards,
Xiaoxin Sheng
- Anonymous7 years agoNot applicable
Hello Anonymous,
hope you Have you got your solution.
- Anonymous7 years agoNot applicable
Thanks! AnonymousAbove DAX expression is helped me.
Thanks! Anonymous