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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
MrHecht
Regular Visitor

Identify shops with an inventory overlap

Dear Power BI community,

 

I am facing an issue where I need to compare which shops have released a specific product and compare which stores have an overlap with other products.

I would like to select a product and compare it across all stores where the product is released to find those stores where other products are also released.

 

Plain worded example: You are selling a very fancy coffee of a specfifc brand and compare if the same store is selling another brand of coffee 

 

I would like to display this information in a visual matrix, similar to the one shown below, and calculate ratios of shops that offer other products as well.

 MrHecht_1-1697191036572.png

Disclaimer: Please ignore the conditional formatting of the cells for now!

 

Do you have any ideas on what measures I can use to achieve the comparison, so that I can identify the stores that only sell the specific product and those that offer more than one?

 

My idea of the end result should have a table like this and also to be able to calculate the 2 measures at the bottom: 

MrHecht_4-1697191561291.png

 

To achieve this, I have a table in long form that contains the product, the shop, and the product release date for that particular shop.

Example data set: 

 MrHecht_2-1697191083856.png

The shop ID is linked to a shop dimension table that contains all the other information related to that particular shop. The external_id, in this particular use case, does not serve any function, and can be ignored if it is not useful in addressing the issue at hand.

 

Thank you so much for your time and please let me know if you need more context, 

 

Best, 

3 REPLIES 3
lbendlin
Super User
Super User

Sounds like you're on the right track.  What do you need help with?

Hello Ibendlin,

 

Thanks for answer!

 

I am having difficulty finding the DAX code that creates a selected product shop overview and allows me to see the overlap. I am currently stuck because my current matrix compares all products against each other, and I am unsure how to select a specific product.

 

It should be a dynamic function since I would like to change the selection of produts while using the report. 

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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