cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors