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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
CoTheiss
Frequent Visitor

Card visual with number of non-matches from related table

I do have two tables Products and ProductGroup that are related to each other via the field GroupID.

Now I want to create a Card that shows the number of ProductGroups that have no Products inside.

 

But as the ProductGroup table knows all contracts but not the No. of products assigned - and the products table knows all products and their assigned product groups but not those groups that have no assignment, I am a little bit lost here 🙂 

 

Products
ProductID
GroupID



ProductGroup
GroupID
Name

 

I guess this one is super easy, but still I dont know how to achieve it.

Any advice? 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@CoTheiss ,

 

countx(except(distinct(Productgroup[groupid]), distinct(Products[groupid]) ) , [groupid])

View solution in original post

2 REPLIES 2
CoTheiss
Frequent Visitor

thank you so much @amitchandak ! 
That worked - definitely would not have come to that solution by experimenting on my own. 

Much appreciated

amitchandak
Super User
Super User

@CoTheiss ,

 

countx(except(distinct(Productgroup[groupid]), distinct(Products[groupid]) ) , [groupid])

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors