Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Top & Bottom 10 based on % Week on Week changes

Hello,   I'm reporting on a review platform and I've got Top 10 and Bottom 10 sites based on average review rating, however if there are more than 10 sites with a score of 5 it brings them all back...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    You can create a Calculated Column for grouping the rankings.

     

    Ratings Group =

    SWITCH
    (
    TRUE(),
    'Table'[Rating] >= 20 , "20 and above",
    'Table'[Rating] < 20 && 'Table'[Rating] >= 15, "15 to 19",
    'Table'[Rating] < 15 && 'Table'[Rating] >= 10, "10 to 14",
    "9 and below"
    )
     
     
     
    Then you can create a measure
     
    RankingGroup =
    RANKX(FILTER(ALL('Table'[site], 'Table'[Ratings Group]), 'Table'[Ratings Group] = MAX('Table'[Ratings Group])),CALCULATE(SUM('Table'[Average Rating])))
     
     
     

    Regards,
    Harsh Nathani

    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)