Forum Discussion
PaulDBrown
Community Champion
6 years agoCalculated column for RANK by product and person
Good morning, Can someone help me with this? I am trying to create a calculated column which creates a rank based on product by sales person. The rank itself establishes the order by date. In oth...
- 6 years ago
hi PaulDBrown
For this case, you could use EARLIER Function in the formula as below:
Column 2 = RANKX(FILTER('Table','Table'[Sales Person]=EARLIER('Table'[Sales Person])),'Table'[Min date Product and sales person],,ASC,Dense)https://docs.microsoft.com/en-us/dax/earlier-function-dax
Regards,
Lin
PaulDBrown
Community Champion
6 years agoAnonymous
Thanks a million! worked like a charm!
v-lili6-msft
Community Support
6 years agohi PaulDBrown
For this case, you could use EARLIER Function in the formula as below:
Column 2 =
RANKX(FILTER('Table','Table'[Sales Person]=EARLIER('Table'[Sales Person])),'Table'[Min date Product and sales person],,ASC,Dense)
https://docs.microsoft.com/en-us/dax/earlier-function-dax
Regards,
Lin