Alteryx Designer Desktop Discussions

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

Creating a "parent" node

Javier070590
7 - Meteor

Dear Community,
I would appreciate your help. I am trying to assign a "parent" node for organization structure I have. 

I have columns ORGANIZATION and LEVEL, I need to create Parent column. I tried multi row formula but it doesn't work.

 

 

ORGANIZATIONLEVELParent
Name110
Name22Name1
Name32Name1
Name42Name1
Name53Name4
Name63Name4
Name72Name1
Name83Name7
Name92Name1
Name102Name1
Name1110
Name122Name11
Name132Name11
Name143Name13
Name154Name14
Name164Name14
Name173Name13
Name182Name11

 

Thank you in advance,

Marcin

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @Javier070590 

 

This is what I was able to come up with.

 

Workflows

atcodedog05_0-1642876069578.png

 

Hope this helps : )

 

Javier070590
7 - Meteor

Hi @atcodedog05,

Thank you for your feedback, it looks very interesting, however still doesn't work perfectly. In yellow I highlighted output different that expected:

Parent column:

Line 8 should be Name 7 (instead of Name4)

Line 12 and Line 13 should be Name11 (instead of Name1)

Line 14 should be Name13 (instead of Name4)

 

Javier070590_0-1642927338215.png

 

Do you have any idea?

Thank you,

Marcin

atcodedog05
22 - Nova
22 - Nova

Hi @Javier070590 

 

I was able to crack it. Here is how you can do it.

Workflow:

atcodedog05_0-1642929145019.png

 

Hope this helps : )

 

Javier070590
7 - Meteor

Hi @atcodedog05,

This is exactly what I needed, many thanks!

 

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Javier070590 

Cheers and have a nice day!

Labels