Forum Discussion
Include Slicer1 values & Exclude Slicer B values
- 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.
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.
Hey, thank you, this is very good. If I wanted to add an AND logic to both slicers instead of an OR logic, would it be possible? Thank you again ! v-jianboli-msft
- v-jianboli-msft3 years agoCommunity Support
Hi thefunnyenterta ,
Can you please explain exactly what kind of AND logic you want?
Sorry for that the information you have provided is not making the problem clear to me. Can you please share more details to help us clarify your scenario?
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.