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
Silko
Helper II
Helper II

Tags in a slicer (AND, OR)

Hi,

 

I have a problem with filtering my data. I have a table of tags which is connected with products, customers, etc. I want to filter my data by tags.

 

I made a slicer and put the tags as a value. There is no problem when I filter data by one tag, but there is a problem when I try to filter data by multiple tags. If I select multiple tags I get all the data which has at least one of the tags (so there is an OR connection between tags in the slicer). But usually I want to get only the data which has all the selected tags (AND connection). Is there a way to do that?

3 REPLIES 3
MattAllington
Community Champion
Community Champion

If the tags come from a single column - I assume they do - then AND doesn't make any sense. Each row can only have one. If your tags come from multiple columns, then how are you doing this?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Tags are in a separate table which has a connection table with every table tags are connected to. It is a many to many connection. So for the products I have three tables:
- products table
- tags table
- products_has_tags table

products_has_tags has two columns:
- tag_id - which is connected to ID in tags table
- product_id - which is connected to ID in products table

Anonymous
Not applicable

@Silko we have same situation too, were you able to solve this issue?

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.