Forum Discussion

aileenkaz's avatar
aileenkaz
Frequent Visitor
5 years ago
Solved

Slicer based on multiple columns

Hello, I have a data with five columns (filter6, filter7, filter8, filter9, filter10). Each one is containing only values 1 or 2. I am trying to create a hierarchical slice filter in which I will c...
  • v-henryk-mstf's avatar
    v-henryk-mstf
    4 years ago

    Hi aileenkaz ,

     

    I think you can create three measures, and when the filter results of three slicers are met at the same time, the corresponding values will be displayed.

    M_filter6 = 
    var a = SELECTEDVALUE(DATA[Filter6])
    return IF(MAX('Filter'[Value Code])=a,1,0)
    
    M_filter7 = 
    var a = SELECTEDVALUE(DATA[Filter7])
    return IF(MAX('Filter'[Value Code])=a,1,0)
    
    M_filter8 = 
    var a = SELECTEDVALUE(DATA[Filter8])
    return IF(MAX('Filter'[Value Code])=a,1,0)

     


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.