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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jocjocrl2025
New Member

Would like create report that will show the Multiple Parent Apps and its dependencies.

Data contains multiple parent applications and dependencies. Some of the parent applications are part of dependencies of another parent applications.  Not sure if its possible, i'm having trouble using Path function.  I hope someone can help.

 

Here's a sample data.

 

Parent App IDParent AppChild App IDDependent App
4Aruba2Amer
2Amer7Am1
2Amer1Global
1Global6G1
1Global10G2
1Global11G3
5Ph9Ph_Ap
5Ph3Apac
3Apac8Ap1
3Apac1Global
2 ACCEPTED SOLUTIONS
FBergamaschi
Solution Sage
Solution Sage

PATH assumes there is only one parent for each child

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

View solution in original post

speedramps
Super User
Super User

Hi @jocjocrl2025 


Your data is invalid

Global is not allow to have two parents

speedramps_0-1753178850670.png

 

If you remove one of like this 

speedramps_1-1753178881368.png

 

Then add a New Column

Path = 
PATH(yourtable[Entity ID],yourtable[Parent ID])

 

The hierachy then works ok

speedramps_2-1753178939614.png

 

 

Learn more abour hierachies here ..

https://learn.microsoft.com/en-us/dax/understanding-functions-for-parent-child-hierarchies-in-dax

https://www.youtube.com/watch?v=EzfLJFEKV8I

 

Please clik thumbs up because I have tried to help.

Then click [accept solution] if it works.  (it will work 😀)

Thank you

 

View solution in original post

6 REPLIES 6
speedramps
Super User
Super User

@jocjocrl2025 

Thnaks for the thumbs up, please can you also click [accept the solution].

 

Incidentally, I forgot to mention you need to create records for each 'entity'.

In yout example Aruba and Ph were missing, which will generate a error message.

I have added them in my example and the PATH works ok.

 

speedramps_0-1753182947160.png

 

 

speedramps
Super User
Super User

Hi @jocjocrl2025 


Your data is invalid

Global is not allow to have two parents

speedramps_0-1753178850670.png

 

If you remove one of like this 

speedramps_1-1753178881368.png

 

Then add a New Column

Path = 
PATH(yourtable[Entity ID],yourtable[Parent ID])

 

The hierachy then works ok

speedramps_2-1753178939614.png

 

 

Learn more abour hierachies here ..

https://learn.microsoft.com/en-us/dax/understanding-functions-for-parent-child-hierarchies-in-dax

https://www.youtube.com/watch?v=EzfLJFEKV8I

 

Please clik thumbs up because I have tried to help.

Then click [accept solution] if it works.  (it will work 😀)

Thank you

 

FBergamaschi
Solution Sage
Solution Sage

PATH assumes there is only one parent for each child

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

@FBergamaschi  I think this answer my question.  I can't used Path Function for the data that I need to output. As my data has multiple parents apps connected to child.

 

@speedramps, also points out that my data is invalid.

 

Any tips or tricks that I can used besides path function.

 

 

@jocjocrl2025 

Thank you for accepting the solution.

The PATH and other heirachy coimmands are the best method in Power BI.  There are no other "tricks".
You data just needs cleaning.

Each top node muct have a records.  (4 and5 were missing in your example).

Parents can have more than one child but a child can only have one parent.

 

Global can not have both Apac and Amer as a parent.

I suspect that this is a typing mistake because I would expect Global to be the top node 

and Apac and Amer to be geographic children of Global.

 

If a child has two or more parents then consider concatinating the parent names into one column e.g. Apac/Amer.

 

The PATH command will strill treat the row as single parent but you would know from the decsription that is was 2 parents.

 

However, it get more complex if parents "remarry" and have other children.

 

I recommend that you model your data to only allow one parent per child,

but allow parents to have multiple children, grandchildren and great grandchildren.

The PATH command is ideal for that.

 

Learn more abour hierachies here ..

https://learn.microsoft.com/en-us/dax/understanding-functions-for-parent-child-hierarchies-in-dax

https://www.youtube.com/watch?v=EzfLJFEKV8I

@jocjocrl2025  thanks to you

 

pls marka a solution all the posts that gave you the right indications, so other can take advantage of these

 

Thx

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors