Forum Discussion

Selvarajen's avatar
Selvarajen
Frequent Visitor
4 years ago

Multi Parent Child Hierarchy

Hi Power BI Community,

 

I am facing an unique issue. All of you have been very supportive with my requests and i need additional guidance as to how to proceed here. 

 

I have to create a legal entity hierarchy and it is very hard for me to nail down the steps. I have multiple parents and childs for the entities and i have given a sample of the data. 
I tried to break down the parent child in different steps but the effort is too much as i have approx 104 unique parents. The problem is that a child is the parent of another child and the list just goes on. 

Example - 

LE101 is the parent and LE160 is the child. In the next step LE160 is the parent and LE174 is the child. In the next step LE174 is the parent and the list goes on. 

Is there a better way i could organize this and come around the mutiple parent child hierarchy. I looked into previous posts and guidance regarding the same but i am unable to proceed further. 
Any help here would be highly appreciated. 

 

Parent LETypeChild LEType
LE1011LE0000601
LE1011LE1602
LE1011LE1603
LE1011LE1604
LE1011LE1701
LE1021LE1603
LE1021LE1604
LE1021LE1607
LE1601LE1631
LE1601LE1741
LE1601LE1851
LE1601LE1852
LE1741LE2222

 

2 Replies

  • What have you tried and where are you stuck?  This sounds like a job for the PATH functions.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Selvarajen ,

     

    I think you couldn't create hierachy levels only for each Parent. 

    What kind of result or calculate do you want? Could you share us a sample file without sensitive data and show us a screenshot with the result you want?

     

    Best Regards,
    Rico Zhou

     

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