Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dropdown menu for a slicer

Hello!   I'm trying to figure out how can i make a dropdown menu for my slicer that will show a range for my numbers for example 7000-8000 and after clicking it will show all of the numbers that ar...
  • themistoklis's avatar
    5 years ago

    Hello Anonymous ,

     

    Create a new calculated column (not measure) with number groups (ranges). Use the formula below. Then add it in a slicer

     

     

    Group Values=
    SWITCH (
        TRUE (),
        Table1[column X] >= 0
            && Table1[column X] < 7000, "0-7000",
        Table1[column X] >= 7000
            && Table1[column X] <= 8000, "7000-8000",
        "other"
    )