Forum Discussion
Filters - toggle vs. multiple
- 5 years ago
Hi Anonymous ,
When you select all the values in the Filter_Value_multiple1 slicer, it will filter the following rows in the Filter table:
Filter_Value_toggle = "A"
AND
(Filter_Value_multiple1 = "is_friendly" OR Filter_Value_ multiple1 = "is_listed" OR Filter_Value_multiple1 = "is_regional")
So both ACM1 and Gwanz are displayed.
Similarly, when you select "is_listed" and "is_regional", the result is as follows.If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 5 years ago
Hi Anonymous ,
If you need to only show "Gwanz" when you select "is_friendly", "is_listed" and "is_regional", I think you need use the measure and filter it when the result is not blank.
Measure = IF( COUNTX( ALLSELECTED('Table'[Filter_Value_multiple1]), 'Table'[Filter_Value_multiple1] ) = CALCULATE( DISTINCTCOUNT('Table'[Filter_Value_multiple1]), ALLSELECTED('Table'[Filter_Value_multiple1]) ), 1 )Best Regards,
Winniz
Hi v-kkf-msft,
to get only "Gwanz". "ACM1" has not "is_friendly". The Toggle-slicer (A/B) seems take precedence over the "multiple_options-slicer".
Do I have to structure the underlying table differently?
In the long term: the customer needs about 10 different slicers - some of them Toggles (between A and B), some of them Single selection (Either C OR D OR E) and some of them Multiple selection (multiple options can be true - F AND G AND H; only F AND G; only G AND H; only F AND H)
Should I:
1: create different types of tables/queries for different types of slicers:
A) Toggle
B) Single selection
C) Multiple selection
--> 3 tables - one for each type of slicers
2: bunch them together inside one table
--> 1 table
or 3: create a new table for each single slicer
--> about 10 tables...
Bye
Michael
Hi Anonymous ,
If you need to only show "Gwanz" when you select "is_friendly", "is_listed" and "is_regional", I think you need use the measure and filter it when the result is not blank.
Measure =
IF(
COUNTX(
ALLSELECTED('Table'[Filter_Value_multiple1]),
'Table'[Filter_Value_multiple1]
)
=
CALCULATE(
DISTINCTCOUNT('Table'[Filter_Value_multiple1]),
ALLSELECTED('Table'[Filter_Value_multiple1])
),
1
)
Best Regards,
Winniz
- Anonymous5 years agoNot applicable
Thank you very much!