Forum Discussion
RANKX by date
- 6 years ago
Hi Anonymous ,
When I use your expression to create a column, it returns "1" for each row. But, when use it to create a measure, it works well.
If you want to create a column, try this:
Date Rank Index 2 column = RANKX ( 'award', 'award'[award_begin_date],, DESC )Best Regards,
IceyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Write these 2 measures
Begin_Date = MIN(Award[award_begin_date])
Rank_Date = RANKX(ALLSELECTED(Award[award_begin_date]),[Begin_Date],,DESC)
Hope this helps.
Hello Ashish,
I was trying to implement your solution but I'm getting an error:
- Ashish_Mathur2 years ago
Super User
Hi,
Replace CALCULATE with RANKX
- WaldemarVogt2 years agoRegular Visitor
Oh how I didn't notice it! Thank you so much.
If you allow I have one more question, is there a way to reverse columns order with dates by having this measure created? Don't really know how to do this.
- Ashish_Mathur2 years ago
Super User
You are welcome. I do not understand your question.