We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Iterative Macro - Multiple VLOOKUPs

JeffJeffrey12
7 - Meteor

Hello everyone,

 

I am trying to generate a "path" of managers.

 

Basicly I want to have it in my data after the Iterative Macro like this:

USERIDManagerManager2Manager3Manager4
ABCDE
BCDE 
CDE  
DE   
E    

 

 

This is my first time trying to create a macro.

This was my approach - attached.

 

Maybe someone has an idea and can help out?

 

Right now I am doing like 20 "Find/Replace" modules after each other which isnt really looking nice and is complicated to manage if I want to change something.

 

Thanks in advance!

 

3 REPLIES 3
Armon24
Alteryx
Alteryx
JeffJeffrey12
7 - Meteor

I didn't have time to get back to this topic yet but I will check on it, whenever I can.

 

Thanks so far @Armon24 

JeffJeffrey12
7 - Meteor

@Armon24 It helped.

 

But I have a further question.

 

Imagine following dataset:

 Hierarchy         
User12345678910
zbcdefghij 
hyxwvlk    

 

As you can see User "h" has his own hierarchy as well as being inside the hierarchy of User "z".

I would need a way - maybe another iterative macro - to automatically check all hierarchy levels for the Users and if found to attach the Users Hierarchy to the one found from the level its found in.

 

In this example I would need to have two rows of hierarchy for User "z":

 Hierarchy         
User12345678910
zbcdefghij 
zyxwvlkhij 

 

 

I hope I could explain what I am trying to solve manually somehow right now.

 

 

Labels
Top Solution Authors