Forum Discussion
Ranking based on date and status
- 6 years ago
Anonymous ,
Create a measure using dax below:
Rank = RANKX ( FILTER ( ALL ( 'Table' ), COUNTROWS ( FILTER ( 'Table', 'Table'[Status] = EARLIER ( 'Table'[Status] ) ) ) ), CALCULATE ( ( SUM ( 'Table'[datetime(UTC)] ) ) ), , DESC, DENSE )Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AnkitBI ,
I would suggest you read blog below:
https://javierguillen.wordpress.com/2012/02/06/can-earlier-be-used-in-dax-measures/
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-yuta-msft
Thanks for the link. I actually figured out the nested filter concept. What I was struggling with was the use of CountRows as I thought second parameter in "Filter" should be a condition that returns a boolean value but it seems even 1 is an expectable value.
Again thanks for this new learning 🙂
Thanks
Ankit Jain