Forum Discussion

Ashok_Gopeani's avatar
2 years ago
Solved

Display columns in Matrix visual based on selection in the hierarchy slicer

Hello Team,   we have one hierarchy slicer with country- state-district combination and matrix visual. Based on the selection in slicer the respective columns are going to add or display in matrix ...
  • PijushRoy's avatar
    2 years ago

    Hi Ashok_Gopeani 

    Please update the measure 

     

    selectHierarchy = SWITCH(
        TRUE(),
        ISFILTERED(Country[District]) || ISFILTERED(Country[State]),1,0)

     

     


    Let me know if that works for you


    If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.

    Thanks
    Pijush
    Linkedin