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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Rasidul_Hasan
Frequent Visitor

Matrix Filter Based on AND OR logic between group of multiple Slicers

Hi All,

I have one Table like the one below,

 

Rasidul_Hasan_0-1666449027731.png

 

and there are 4 Groups of slicers. Slicers groups are,

Slicer Group A = Contain Slicer A1 and A2

Slicer Group B = Contain Slicer B1 and B2

Slicer Group C = Contain Slicer C1 and C2

Slicer Group D = Contain Slicer D1 and D2

 

Slicer Group.JPG

 

I want to Filter the Matrix based on user selections in the Slicers Groups. But, there are AND and OR logic between Slicers.

Matrix will be filtered based on this logic = ( Slicer Group A AND Slicer Group B ) OR Slicer Group C OR Slicer Group D

 

Rasidul_Hasan_0-1666446514817.png

Example Result:

  • IF User Select A1 Listed Feed_ID will be 101, 102, 106
  • IF User Select A1 and A2, Listed Feed_ID will be 102 (Because Logic is A1 AND A2)
  • IF User Select A2 and B1, Listed Feed_ID will be 103 (Because Logic is A AND B)
  • IF User Select A2, B1 and C1 Listed Feed_ID will be 102, 103, 104, 107 (Because Logic is {A AND B} OR C})
  • IF User Select C1 and D1, Listed Feed_ID will be 102, 104, 107 (Because Logic is C OR D)
  • IF User Select A2, B1, C1 and D1, Listed Feed_ID will be 102, 104, 107 (Because Logic is {(A AND B) OR C OR D})
  • IF User Select B2, C1 and D1 Listed Feed_ID will be 101, 102, 104, 107 (Because Logic is B OR C OR D)
  • IF User Select B2 and D1 Listed Feed_ID will be 101, 102 (Because Logic is B OR D)

Also, I want to Count the number of Unique Feed_ID based on User Filters.

Check the Attached pbix File. 

Link:  https://drive.google.com/file/d/1L-DZu0LSZtfzLwrFJLKDWj3MseZ6iIah/view?usp=sharing

 

2 REPLIES 2
lbendlin
Super User
Super User

Your only chance at implementing this is to use disconnected tables for ALL of your subgroups, and a measure as visual level filter.  Good luck.

hi @lbendlin, can you share a prototype of this sample ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.