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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Riya275
Frequent Visitor

Get union of selections from using 4 slicers

Is there a way to get union of selection from 4 different slicers. 

I have tried using the method os creating disconnected tables and creating a visual level filter to get union. It however doesnt work for more than 2 slicers. 

Detailed method - https://apexinsights.net/blog/or-xor-slicing

 

Is there a way to scale up this method to accomodate 4 slicers?  Or is there another method?

2 REPLIES 2
johnt75
Super User
Super User

You can extend the author's method if instead of using the OR function you use || operator - that way you can chain together as many conditions as you like. Modifying the author's code would give you

OR Filter =
IF (
    SELECTEDVALUE ( 'Data Table'[Letters] )
        IN ALLSELECTED ( Letters[Letters] ) // Checks if current letter is in slicer selection
            || SELECTEDVALUE ( 'Data Table'[Numbers] ) IN ALLSELECTED ( Numbers[Numbers] ),
    // As above for current number
    1,
    // Return 1 if value is selected in one or both of the slicers
    0 // Else return 0
)

This is not working. If I choose any two slicers it doesnt work, there is no change in the visuals. If I choose yes on two slicers and no on the other two , it still doesnt work. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.