Forum Discussion

aar0n's avatar
aar0n
Advocate II
8 years ago
Solved

Help with a Top value

Hi Guys,    I am trying to create a "Hall of Fame" tab in my report.    pretty much, i want the user to select one of many measures that describe my data, and then be able to select top 10% of va...
  • v-yuta-msft's avatar
    v-yuta-msft
    8 years ago

    Hi aar0n,

     

    Create a new table Options like below:

     

    Then create a measure in the table using DAX:

    Result =
    SWITCH (
        TRUE (),
        SELECTEDVALUE ( Options[Options] ) = "Top 10% Names By Average", [Top 10% Names By Average],
        SELECTEDVALUE ( Options[Options] ) = "Top 10% Names By Total", [Top 10% Names By Total],
        SELECTEDVALUE ( Options[Options] ) = "Top 10% Names By Max", [Top 10% Names By Max]
    )
    

     

     

    Regards,

    Jimmy Tao