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
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
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.