Forum Discussion
Custom Slicer: All values and all except one
- Anonymous5 years ago
Hi crln-blue ,
Based on your description, you can do some steps as follows.
1. create a table that contains only "All materials except material B" and "All materials". (I used "Enter Data" option)
2. create a measure and drag it to the filter of the table visual.(is equal to 1)
Measure =
var x1=SELECTEDVALUE('slicer'[S])
var x2=IF(MAX('Query1'[material])<>BLANK(),"All materials")
var x3=IF(MAX('Query1'[material])<>"B","All materials except material B")
return
IF(x1="All materials",1,IF(x1=x3,1,0))Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi crln-blue ,
Based on your description, you can do some steps as follows.
1. create a table that contains only "All materials except material B" and "All materials". (I used "Enter Data" option)
2. create a measure and drag it to the filter of the table visual.(is equal to 1)
Measure =
var x1=SELECTEDVALUE('slicer'[S])
var x2=IF(MAX('Query1'[material])<>BLANK(),"All materials")
var x3=IF(MAX('Query1'[material])<>"B","All materials except material B")
return
IF(x1="All materials",1,IF(x1=x3,1,0))
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Anonymous ! This solved my problem. I did this but I did not use the MAX function for checking the material that's why my slicer is not reflecting in the matrix.
I just have a question, what's the MAX function in material for? I just want to understand the measure. Thanks again!