Forum Discussion
adnanarain
Helper V
6 years agoRank Measure with ID and Date
Hi All, Below is the sample data: ID Date Quantity 1 01/01/20 2 1 01/02/20 3 1 01/03/20 1 2 01/01/20 3 2 01/02/20 7 2 01/03/20 ...
- Anonymous6 years ago
Try this one:
Measure = RANKX(FILTER(ALLSELECTED('Table'),[ID]=MAX('Table'[ID])),CALCULATE(SUM([Date])),,ASC,Dense)Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
6 years agoadnanarain , try like
rankx(allselected(Table[Date]), calculate(sum(Table[Quantity])),,desc,dense)
Please find the attached file after the signature.
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
adnanarain
Helper V
6 years agoamitchandak This is what I want.
- Anonymous6 years agoNot applicable
Try this one:
Measure = RANKX(FILTER(ALLSELECTED('Table'),[ID]=MAX('Table'[ID])),CALCULATE(SUM([Date])),,ASC,Dense)Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.