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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Relationships and except

Hello,

 

I am fairly new and not sure where I am messing this up.

 

At the moment my report is fairly simple with 2 tables 1 inventory and the other product, I have use except funtion to create a new table of any missing product on the inventory.

 

On the report a lot of visualization cross filter when I select a brand, except those on the except table at the moment this has a 1 to 1 relationship with cross filter both directions to the product table. I want to know how I can select a brant and show me the products of the brand missing.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

Is this what you want?

Missing Product = 
IF (
    CALCULATE (
        COUNTROWS ( inventory ),
        FILTER ( inventory, inventory[Product] = 'product'[product] )
    ) = 0,
    'product'[product]
)

missing.PNG

inventory.PNGmissing.gif

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

Is this what you want?

Missing Product = 
IF (
    CALCULATE (
        COUNTROWS ( inventory ),
        FILTER ( inventory, inventory[Product] = 'product'[product] )
    ) = 0,
    'product'[product]
)

missing.PNG

inventory.PNGmissing.gif

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello @Icey 

 

This does work, I am still curious why my approach of the new table and the relationships didn't work but I will take this wisdom you provide, thanks!

Ashish_Mathur
Super User
Super User

Hi,

Share a dataset and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.