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
Quinn_Punisher8
Regular Visitor

PATH() Multiple Value error

I want to create a child-parent hierachy in Powerbi for below data where I have duplicate value in name column which have different Parents. Using PATH() and its giving error -

 

Quinn_Punisher8_1-1698909201515.png

 

In such cases, how to create a Parent-Child Hierachy ?

 

 

2 REPLIES 2
Quinn_Punisher8
Regular Visitor

Thanks @adamtsummers ,  So is there any alternative soultion rather than using PATH() for achieving child-parent hierachy approach for above scenario?

adamtsummers
New Member

Hi there,

 

Its not possible to have a node with two different parents and use PATH -- its designed for a strict parent/child relationship which looks like a tree, eg:

 

pc.png

 

By looking at the data that you have in your table, it looks like you have two different areas called MSS001, that are based in different countries (US and India). To be able to use path, your items need a unique name.

 

Have a look here: PATH function (DAX) - DAX | Microsoft Learn

 

You'll see the following:

 

  • If ID_columnName has duplicates and parent_columnName is the same for those duplicates then PATH() returns the common parent_columnName value; however, if parent_columnName value is different for those duplicates then PATH() returns an error. In other words, if you have two listings for the same employee ID and they have the same manager ID, the PATH function returns the ID for that manager. However, if there are two identical employee IDs that have different manager IDs, the PATH function returns an error.

Hope this helps!

Adam

 

Helpful resources

Announcements
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!

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.