Forum Discussion
ryan_b_fiting
5 years agoPost Patron
RANK Dates dynamically
Hello Community - I have a set of data with part_numbers, quantities and dates. I am looking to be able to rank the dates from newest to oldest so that I can determine if the part is one that w...
- Anonymous5 years ago
I've set up a small example with a simple table that only has about 10 dates, then created this measure:
Ranking = if( ISINSCOPE( Releases[Release Date] ), RANKX( ALLSELECTED( Releases[Release Date] ), CALCULATE( SELECTEDVALUE( Releases[Release Date] ) ),, DESC ) )and it works as expected, adjusting itself to the selected range.
Anonymous
5 years agoNot applicable
I've set up a small example with a simple table that only has about 10 dates, then created this measure:
Ranking =
if( ISINSCOPE( Releases[Release Date] ),
RANKX(
ALLSELECTED( Releases[Release Date] ),
CALCULATE( SELECTEDVALUE( Releases[Release Date] ) ),,
DESC
)
)and it works as expected, adjusting itself to the selected range.