Forum Discussion

JTsoi's avatar
JTsoi
Frequent Visitor
11 months ago
Solved

How to implement multi-level cascading slicers and filtering?

I'm trying to implement a slicer that basically slices other slicers. The goal is for a user to pick one slicer, and in doing so, multiple other slicers will have their choices automatically sliced o...
  • Bmejia's avatar
    11 months ago

    Hi JTsoi,

    I didn't get to see your uploaded file until after put the attached file.  


    1st you want to create one column on your table in the GL Entrie table as I have in the "YourTable" for each logic.

     


    2nd Create a table with all your report filters like i have in the V_table

     

    3rd. you want to create a measure like the one in the file "Breakout Filter"

    Breakout Filter =

    VAR selectedCategory = SELECTEDVALUE( V_Table[FilterCat])
    VAR FUR =CALCULATE( SELECTEDVALUE(YourTable[Furniture]),YourTable[Furniture]>0)
    VAR ADM =CALCULATE( SELECTEDVALUE(YourTable[Admin]),YourTable[Admin]>0)
    VAR MAM =CALCULATE( SELECTEDVALUE(YourTable[Mambovilles]),YourTable[Mambovilles]>0)
    VAR SAN =CALCULATE( SELECTEDVALUE(YourTable[Sanevilles Misc]),YourTable[Sanevilles Misc]>0)
    VAR SER =CALCULATE( SELECTEDVALUE(YourTable[Service + Mis]),YourTable[Service + Mis]>0)
    RETURN
    SWITCH(TRUE(),
    selectedCategory="Admin",ADM,
    selectedCategory="Furniture",FUR,
    selectedCategory="Mambovilles",MAM,
    selectedCategory="Sanevilles Misc",SAN,
    selectedCategory="Service +Mis",SER,
    "OTHER"
    )
     
    4th you want to add your report filter category

     


    5th you want to add the measure to your table but only in the filter pane not in the table and filter by "Show item when the value "is" equal to 1.

     



    Then you can tested