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
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
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.

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.