I have been trying to break my head behind creating an upward hierarchy i.e. traversing from child till the ultimate parent. Some of the ultimate parents i.e. groups have as low as 2 entities in it while some have about 600 entities in it. I have tried to go through the various posts in the discussions/community page but i am not able to get any results
any help will be highly appreciated.
In the below sample hierarchy for each of the given child i seek the following desired output
| CHILD | IMMEDIATEPARENT | ULTIMATEPARENT |
| 238337650 | 250674410 | 793440 |
| 250674410 | 12437780 | 793440 |
| 12437780 | 244631310 | 793440 |
| 244631310 | 290154930 | 793440 |
| 290154930 | 793440 | 793440 |
| 793440 | 793440 | 793440 |
Desired Output:
| Child | ID |
| 238337650 | 238337650 |
| 238337650 | 250674410 |
| 238337650 | 12437780 |
| 238337650 | 244631310 |
| 238337650 | 290154930 |
| 238337650 | 793440 |
| 250674410 | 250674410 |
| 250674410 | 12437780 |
| 250674410 | 244631310 |
| 250674410 | 290154930 |
| 250674410 | 793440 |
| 12437780 | 12437780 |
| 12437780 | 244631310 |
| 12437780 | 290154930 |
| 12437780 | 793440 |
The hierarchies have breaks and i would also want to identify them.
e.g.
| 261002860 | 174845700 | 305414070 |
| 174845700 | 265420170 | 305414070 |
| 305414070 | 305414070 | 305414070 |
here the reporting for "265420170" is missing
i tried to create something but i feel i am having to repeat same pattern in loops for different grouped hierarchy counts and i feel there might be a better way to do it hence reaching out in the community. Any help is highly appreciated. (unable to share the workflow due to the size of the input files)
