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! Request now

Reply
TomSinAA
Helper IV
Helper IV

Display parent record when no child record exists

I have a parent table and a child table with related records.  I created a table visual to display the parent record and count of IDs in the related child table.  The visual does not display the parent record if there are no related child records.

 

So it displays the table visual as:

Parent Table Field 1Count of child related records
A1
B2
C1

 

 

 

I want it to display as follows:

Parent Table Field 1Count of child related records
A1
B2
C1
D

 

 

or

Parent Table Field 1Count of child related records
A1
B2
C1
D0
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @TomSinAA ,

According to your description, here's my solution.

Sample:

Parent table:

vyanjiangmsft_0-1691461395825.png

Child table:

vyanjiangmsft_1-1691461418590.png

Create a measure:

Measure =
CALCULATE ( COUNT ( ChildTable[Child] ), REMOVEFILTERS ( ChildTable[Child] ) )

Put the measure in visual filter and select show items when the value is blank.

vyanjiangmsft_2-1691461527823.png

After apply filter, get the correct result:

vyanjiangmsft_3-1691461566974.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

12 REPLIES 12
v-yanjiang-msft
Community Support
Community Support

Hi @TomSinAA ,

According to your description, here's my solution.

Sample:

Parent table:

vyanjiangmsft_0-1691461395825.png

Child table:

vyanjiangmsft_1-1691461418590.png

Create a measure:

Measure =
CALCULATE ( COUNT ( ChildTable[Child] ), REMOVEFILTERS ( ChildTable[Child] ) )

Put the measure in visual filter and select show items when the value is blank.

vyanjiangmsft_2-1691461527823.png

After apply filter, get the correct result:

vyanjiangmsft_3-1691461566974.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

parry2k
Super User
Super User

@TomSinAA not sure what's going on. Can you share the pbix file, remove any sensitive information before sharing. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

Indeed make sense. I was trying to debug and guess the issue. Add +0 to countrows measure and the filter where measure = 0



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I updated the measure to add 0, then filtered for =0,  but it is still listing hazard with child records (e.g. HZD-10705)

 

TomSinAA_0-1691415564292.png

 

parry2k
Super User
Super User

@TomSinAA Can you turn off show items with no data and then check?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

No rows are displayed when I remove the show items with no data 

 

TomSinAA_0-1691367343264.png

 

parry2k
Super User
Super User

When you are filtering the table, it is only filtering child table, not the parent.

 

there are few ways to solve it. Add a measure which is simple countrows of child table and then use it as a filter where this measure is blank.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Created the measure:

RiskRequirementRowCount = COUNTROWS(RiskRequirement)
 
It does display the count without the filter:
TomSinAA_0-1691355851881.png

However, when I add the filter (rowcount is blank), it lists Hazards with RequirementTypeNumber child records

TomSinAA_1-1691355931943.png

 

HZD-10705 still listed when filter is applied

TomSinAA_2-1691355948645.png

 

TomSinAA
Helper IV
Helper IV

Show items with no data works.  Here is the visual with actual data:

Hazard data is the parent table, RequirementTypeNumber is in the child table

TomSinAA_0-1691343550615.png

 

If I filter that visual for RequirementTypeNumber is blank (see below) 

TomSinAA_1-1691343620882.png

 

it displays Hazards that are not blank for RequirementTypeNumber

TomSinAA_2-1691343685887.png

 

Hazard HZD-10705 has a record in the child table for RequirementTypeNumber.  So when filtering for is blank I would expect HZD-10705 not to be listed.

 

 

TomMartens
Super User
Super User

Hey @TomSinAA ,

 

you can enable the "Show item with no data" option:

TomMartens_0-1691340889701.png

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
parry2k
Super User
Super User

@TomSinAA you can use show item with no data and it will show everything. Show items with no data in Power BI - Power BI | Microsoft Learn

 

👉 Learn Power BI and Fabric - subscribe to our YT channel - @PowerBIHowTo



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

The show items with no data works.  See my visual with actual data:

Hazard data is in the parent table, the RequirementTypeNumber data is in the child table

TomSinAA_0-1691344520533.png

If I want to see just the Hazards without a RequirementTypeNumber, I applied a filter:

TomSinAA_1-1691344616442.png

And it displays Hazard: HZD-10705 as shown below:

TomSinAA_2-1691344742359.png

 

However, HZD-10705 does have a RequirementTypeNumber in the child table as shown in the first screen..  I would have expected the filter to not display HZD-10705. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors