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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
yaronklein
Helper II
Helper II

How to count empty cells in one to many relationship

Hi,
I have what seems to be a simple problem, however I cannot find a solution.
Here is a simplified explantion:
I have a table with people and a table with cars.
Each person can hold zero to many cars.

yaronklein_0-1676678363364.png

Here is the content of the both merged together:

yaronklein_1-1676678414421.png

I would like to show how many people have a specific car and in teh same graph also to show how many people don't have a car, however when I create the graph, I get only the number of people per car and I don't have an empty row to count how many people don't have car:

yaronklein_2-1676678524928.png

Here is what I wanted to get:

yaronklein_3-1676678642001.png

Here is how the visual fields look like:

yaronklein_4-1676679020615.png

I am sure that there is a simple solution, but I cannnot figure it out.
I would appriciate the help.
Here is a link to the pbi if it will help to provide a solution in the exmaple file.
Thanks,
Yaron



1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://dropmefiles.com/ecD7H

Screen Capture #305.pngScreen Capture #306.pngScreen Capture #307.pngScreen Capture #308.png

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://dropmefiles.com/ecD7H

Screen Capture #305.pngScreen Capture #306.pngScreen Capture #307.pngScreen Capture #308.png

Thank you Ahmedx!
This works well.

CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1676685288285.png

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Thanks CNENFRNL,
Just to make sure that I understand - in your case the number of empty will show in the total and you just renamed it. 
This means that this value will not show up in a graph.
Thanks.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.