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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
dieterbe_vdb
Frequent Visitor

Table visual showing records that shouldn't be there

Hello, I have a data model with three tables: Parent, Child (link to Parent via e one to many relation) and Grandchild (linked to Child via a one to many  relation).

dieterbe_vdb_0-1661927306658.png


Parent table:

dieterbe_vdb_1-1661927317385.png


Child table:

 

dieterbe_vdb_2-1661927328489.png

 

Grandchild table: 

 

dieterbe_vdb_3-1661927343803.png

 



I want to visualize all combinations of Parents and Childs + number of GrandChilds (from the perspective of the Parent).
Measure I'm using: 

#Grandchild = COUNTROWS(tblGrandChild) + 0
I've added the + 0 as I also want to show the Parent/Child combinations who don't have a grandchild.

dieterbe_vdb_4-1661927409674.png

 



I notice that this works, however, in my visual (a Table) I also see Parent/Child combinations which aren't possible?  How come that in this case the relation between Parent and Child doesn't "work" => parent A isn't linked with child B and C so why is this combination shown?

How can that for example
2 REPLIES 2
amitchandak
Super User
Super User

@dieterbe_vdb , Using power query merge add parent Id to Grandchild  table and then join it with parent and child directly, then +0 should work better

Merge: https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Should be very similar to Power BI Items/Categories not sold to the customers: https://youtu.be/AbuKvAnicwo

 

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

Many thanks for your answer!

I agree that joining tables will do the job.

My question remains: why isn't the relationship / filter working in my example => so why does PowerBI shows combinations which aren't possible at all? It is known (from the relations) that child BA can't be a child of parent A => how can I avoid Power BI to show this combination in my table (supposing that I'm working with different tables and relationships between these tables)?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.