Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

perform rollup on organizational hierarchy data

rpras
5 - Atom

I have a dataset that looks like below

 

EmployeeManager
E1E2
E2E3
E3E4
E4E5

 

 

I want to roll up the child data to all the parents associated with it based on hierarchy like below

 

EmployeeManager
E1E2
E1E3
E1E4
E1E5
E2E3
E2E4
E2E5
E3E4
E3E5
E4E5

 

 

Thanks in advance for the help :)

5 REPLIES 5
jdunkerley79
ACE Emeritus
ACE Emeritus

Try the attached.

 

2018-12-19_23-56-21.png

What it does is using an iterative macro it reads the current leaves and merges with the level above. It then repeats until all are mapped.

 

Hopefully enough to get you started

rpras
5 - Atom

This is perfect. Thank you :)

rpras
5 - Atom

I tried to do the same but did not work for me. The version I am using is 2018.1, can you let me know if I am doing something wrong. I have attached the files along with this.

 

 

Thanks

jdunkerley79
ACE Emeritus
ACE Emeritus

Have attached a version for 2018.1 (I think...)

 

Will take a look at the zip

jdunkerley79
ACE Emeritus
ACE Emeritus

@rpras only issue with your workflow is that the results come out the other output!

 

2018-12-20_22-07-45.png

 

Connect to bottom and will work :)

Labels