Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

Filtering Lookup Table Based on Data Table Values

I have the following tables:

Customers_Lookup which contains customerID, name, address ...etc.

Orders_Lookup which contains OrderID, CustomerID, TotalReceipt ...etc.

Product_Lookup which contains ProductID, ProductName, Category ...etc. 

Orders_Data which contains OrderID, CustomerID, ProductID, Quantity, Price ...etc.

 

How can I get a list of customers who never bought a specific product? 

 

I appreciate your help.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous ,

Sum Qty= sum(Orders_Data[Quantity])+0

 

Now create a visual customer, Product and Sum Qty and put a visual level filter of Sum Qty=0

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous ,

Sum Qty= sum(Orders_Data[Quantity])+0

 

Now create a visual customer, Product and Sum Qty and put a visual level filter of Sum Qty=0

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Thanks a lot, @amitchandak for your answer.

It totally solves my problem.

 

I have another question related to the same problem and I'd love to get your feedback.

I need to get a list of customers who never bought a specific product. However, they bought other products that are under that specific product category. For example which customers are interested in Accessories but never bought a Nike Bracelet.

 

Here's what I've done:

Specific Product Category Quantity = CALCULATE([Total Quantity], Products_Lookup[ProductGroup] = "Accessories")

Specific Product Quantity = CALCULATE([Total Quantity] + 0 , Products_Lookup[ProductNumber] = 113000423)

 

Then I've created a visual with Customer, Specific Product Category Quantity, and Specific Product Quantity.

Then I've created a visual filter where (Specific Product Category Quantity > 0) and (Specific Product Quantity = 0).

 

I think this solution isn't flexible as the variables are hardcoded.

Do you have any other recommendations?

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)