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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
matd13
New Member

Finding Brands Missing From Stores

Hello Experts:

 

I have a dataset that lists the store number and accompanying brand. I need to find the stores that the brands are not in. Below is an example of the data i have:

 

Store NumberBrand
1A
1B
1C
2A
3B

 

ultimately i would like to be able to select a brand via a slicer or graph, and have a table show me a list of stores that the selected brand is not in. For example if I filter on brand C it will tell me the stores it is not listed in is store 2 and 3.

 

I was thinking having a master table with a list of all the store numbers will help but I'm stumped from there.

 

Thank you in advance for any help!

1 ACCEPTED SOLUTION
Wimverh
Resolver IV
Resolver IV

For a basic solution this dax should work:

# records anti = 
COUNTROWS (
    EXCEPT ( VALUES ( Brand[Brand] ), VALUES ( StoreBrandLink[Brand] ) )
)

 with a datamodel like this:
2020-04-23_22-41-19.jpg

View solution in original post

2 REPLIES 2
Wimverh
Resolver IV
Resolver IV

For a basic solution this dax should work:

# records anti = 
COUNTROWS (
    EXCEPT ( VALUES ( Brand[Brand] ), VALUES ( StoreBrandLink[Brand] ) )
)

 with a datamodel like this:
2020-04-23_22-41-19.jpg

camargos88
Community Champion
Community Champion

Hi @matd13 ,

 

Check this file as an example: Download PBIX 

 

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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