Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Filters - toggle vs. multiple

Hi,

 

I do not understand why a company here is filtered and why not:

 

If a toggle is applied, both results are correct:

1.png

  

But if I filter additionally for multiple attributes: ACME1 remains when de-selecting "friendly" in the slicer. Gwanz is friendly, regional and listed, while ACME1 is only regional and listed.

Why does this happen?

 

2.png

 


3.png

 

Bye

 

Michael

 

2 ACCEPTED SOLUTIONS
v-kkf-msft
Community Support
Community Support

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.

 

vkkfmsft_0-1630472706317.png


Similarly, when you select "is_listed" and "is_regional", the result is as follows.

 

vkkfmsft_1-1630472779151.png

 

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,
Winniz

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

 

View solution in original post

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
)

image.png

 

Best Regards,
Winniz

View solution in original post

7 REPLIES 7
v-kkf-msft
Community Support
Community Support

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.

 

vkkfmsft_0-1630472706317.png


Similarly, when you select "is_listed" and "is_regional", the result is as follows.

 

vkkfmsft_1-1630472779151.png

 

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,
Winniz

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

 

Anonymous
Not applicable

Thank you very much!

That explanation helped a lot!

 

Additonal questions:

  • I do know I can edit the DAX of a measure. But I do not know how to edit the DAX of A) Slicers and B) between Slicers (= "connecting") - and if yes, should do it? Because I fear that the options would grow exponentially!
  • Should I create one table in Excel/one query for On/Off-Toggle-Slicers, another one for Slicers with singular options and another one for Slicers with multiple options - or should I combine them inside a single table/ one query?

Hi @Anonymous ,

 

I cannot clearly understand. What kind of results do you expect to get with these two slicers?

 

Best Regards,
Winniz

Anonymous
Not applicable

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
)

image.png

 

Best Regards,
Winniz

Anonymous
Not applicable

Thank you very much!

amitchandak
Super User
Super User

@Anonymous , Not very clear. But filter fact will filter the dimension company because of bi-directional join

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors