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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
gussie
Frequent Visitor

Exclude and Include Slicer

Hi Everyone,

I am at a roadblock in a current assignment... I have a product matrix that includes:

 Product AProduct BProduct CProduct D
Customer 11 32
Customer 221 1

 

INCLUDE SLICER: I would like a filter that if I select it shows me if customer has Product A and Product B then it will show:

 Product AProduct BProduct CProduct D
Customer 221 1

 

EXCLUDE SLICER: I would also like a filter that shows me if a customer does not have a certain product. For example a slicer if I select Product B it will show:

 Product AProduct BProduct CProduct D
Customer 11 32



I have the measure for each product calculating what products each customer has. If a customer doesn't have a certain product it is blank. Am I doing this correctly? How would I go about a exclude and include slicer 🙂

 

active_product_a = 

VAR A = CALCULATE( SUM( fact[qty] ),

ALL(fact),

VALUES(dim_customer[customer_name]),

fact[product_type] = "A"

)

RETURN

IF( A = 0, BLANK(), A)
3 REPLIES 3
amitchandak
Super User
Super User

@gussie , I have discussed this using an independent table in my video

Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE

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

I don't want to use an independent table, I want to use the same table.

 

Thanks 🙂

Anonymous
Not applicable

Hi @gussie ,

 

You will need an independent table. If you use the same table, the slicer will also filter the visual.

 

Best Regards,

Jay

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors