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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Filtering Filter That Contains Product Name

Hey All,

 

I have a shopping list of different customers.

IDProducts Bought
1Prod_1
1Prod_2
1Prod_3
1Prod_4
2Prod_3
2Prod_3
3Prod_2
3Prod_3

I want to see all the Customers(ID) and all of their products(Products Bought) if i'll choose a certain product.

The current result is wrong - If I choose "Prod_3", I'll get all the customers:

 
 
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

1. Create another product table for slicer and do not create relationships with other tables.

Product = DISTINCT('Table'[Products Bought])

 

2. Create a measure and use it as a visual filter, set as "is not blank".

Measure = 
VAR SelectedProduct =
    VALUES ( 'Product'[Products Bought] )
VAR t =
    SUMMARIZE (
        FILTER ( ALL ( 'Table' ), 'Table'[Products Bought] IN SelectedProduct ),
        [ID]
    )
RETURN
    IF ( MAX ( 'Table'[ID] ) IN t, 1 )

product.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

 

 

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

1. Create another product table for slicer and do not create relationships with other tables.

Product = DISTINCT('Table'[Products Bought])

 

2. Create a measure and use it as a visual filter, set as "is not blank".

Measure = 
VAR SelectedProduct =
    VALUES ( 'Product'[Products Bought] )
VAR t =
    SUMMARIZE (
        FILTER ( ALL ( 'Table' ), 'Table'[Products Bought] IN SelectedProduct ),
        [ID]
    )
RETURN
    IF ( MAX ( 'Table'[ID] ) IN t, 1 )

product.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

 

 

Anonymous
Not applicable

@Icey 

Perfect! Thank you very very much 

amitchandak
Super User
Super User

@Anonymous , Product 3 is sold to all the customers? what is the problem?

Can you share sample output in table format?

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
Anonymous
Not applicable

hey @amitchandak ,

It do not let me add a picture...

Yes Product 3 is sold for all, so I want to select "Product 3" and it will show me all ID and products.

but if i'll choose Products 4 it will show me only ID = 1 and all of his products

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors