Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

RankX excluding some values

Hi,   I want to exclude some value or want filter some values while calculating the Rank. I am calculating the Ranks on the basis of average ranking given on some parameters.   I am using below D...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    Then try this measure.

     

    Rank Without GRp 1 = 
    
    IF(
        SELECTEDVALUE('Table'[Unit]) = "Group1", BLANK(),
    RANKX (FILTER(ALL('Table'),'Table'[Unit] <> "Group1"), CALCULATE(AVERAGE('Table'[Average of Star Rating]))))

     

    Regards,

    Harsh Nathani

    Appreciate with a Kudos!! (Click the Thumbs Up Button)