Forum Discussion
047
4 years agoFrequent Visitor
Slicer with overlapping values
Hi A newbie here. I've tried searching in the forum without luck. I'm looking to apply filter on a set of values where some of the rows may belong to mulitple categories. For example: Item...
- 4 years ago
Hi 047 ,
If your sample cannot make relationship, you can try this method.
1.Create a table with all categories, donn't make relationship between the two tables.
2. Create a measure.
Check = IF ( NOT ( ISFILTERED ( 'Table (2)'[Category] ) ), 1, IF ( ISFILTERED ( 'Table (2)'[Category] ) && ( MAX ( 'Table'[Category] ) = SELECTEDVALUE ( 'Table (2)'[Category] ) || MAX ( 'Table'[Category] ) = "Both" ), 1 ) )3.Put the new category table in the slicer, and put the measure in the ItemName visual filter, select the value is 1.
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Whitewater100
Solution Sage
4 years agoHi:
If you set up your model a bit different it it easier.
Please see attached. I hope this helps!https://drive.google.com/file/d/1IHA0JL2M-_il6S6N_ggGP8Jq_MR0812K/view?usp=sharing