Forum Discussion

thefunnyenterta's avatar
thefunnyenterta
Frequent Visitor
3 years ago
Solved

Include Slicer1 values & Exclude Slicer B values

Slicer1 selected values should be in the visuals. However, slicer 2 selected values should be excluded from the visuals. Is this possible? and is it possible from this, to have a list of the customer...
  • v-jianboli-msft's avatar
    3 years ago

    Hi thefunnyenterta ,

     

    Please try:

    First create another table for slicer2:

    Then apply the measure to the visual level filter:

    Measure = 
    var _a = ADDCOLUMNS(FILTER(ALL('Customer purchase'),'Customer purchase'[Customer]=MAX('Customer purchase'[Customer])),"Flag",IF([Product bought] in SELECTCOLUMNS('Product List',"Excluded",[Product list]),1,0))
    var _b = SUMX(_a,[Flag])
    return IF(_b>0,1,0)

    Final output:

    Best Regards,

    Jianbo Li

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