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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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