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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors