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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Sankey Chart with multi-parent in parent-child hierarchy

Hello,

 

I have the following issue. Im trying the visualize the BOM of some products. I am using a Child-parent structure, but I have some duplicates (since some semi-finished products are used in many other finished products).

 

The data have the following shape : 

 

ChildParent
GMT 0333NULL
GMT 0391NULL
FS 099GMT 0333
FS 099GMT 0391
PC 213FS 099
CT 013FS 099
CT 041FS 099

 

GMT 0333 and GMT 0391 have no parent, that means that they are the finished product (the root of the tree).

FS 099 is a finished product, used in both GMT 0391 and GMT 0333.
Many raw materials make up FS 099.

 

The problem that I have is that the Sankey chart seems to only consider the first instance of FS 099 in the visual. As we can see below, when I filter on GMT 0333, the FS 099 works fine and the tree is visible.
But for the GMT 0391, the FS 099 appears like a raw materials, and we can't see the rest of the tree.

I feel like Power Bi only consider one instance for duplicate in a child-parent hierarchy.
How can I deal with this ??

 

Thanks for your help !

 

 

 

 

yaelzi_2-1721657794637.png

 

 

yaelzi_1-1721657766185.png

normally the tree should continue after the FS 099 here

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Maybe you can create below calculated column and add it to destination in Sankey chart:

UniqueID = 'Table'[Child] & "_" & 'Table'[Parent]
Count of Unique Relationships = 
CALCULATE (
    DISTINCTCOUNT('Table'[UniqueID]),
    ALLSELECTED('Table')
)

vkongfanfmsft_0-1721715862425.png

 

Best Regards,
Adamk Kong

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Maybe you can create below calculated column and add it to destination in Sankey chart:

UniqueID = 'Table'[Child] & "_" & 'Table'[Parent]
Count of Unique Relationships = 
CALCULATE (
    DISTINCTCOUNT('Table'[UniqueID]),
    ALLSELECTED('Table')
)

vkongfanfmsft_0-1721715862425.png

 

Best Regards,
Adamk Kong

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors