Forum Discussion

electrobrit's avatar
electrobrit
Icon for Post Patron rankPost Patron
7 years ago
Solved

Rankx-Ranking should begin when there is a value (not blank) on Ascending rank

RankX is confusing to me so hoping someone can help me through this. I have stores that have an average duration of a task. The lower the better (so I have to sort asc), but if there is no "averag...
  • parry2k's avatar
    7 years ago

    electrobrit try this measure

     

    Rank = 
    RANKX( 
    FILTER( ALL( Store[StoreKey] ), 
    [Avg Duration] <> BLANK()  
    ), 
    [Avg Duration], , ASC ) * 
    DIVIDE( [Avg Duration], [Avg Duration] )