Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Xlookup or Vlookup equivalent in Alteryx

rjesus1987
5 - Atom

Hello Team,

 

With the sample tables below,  what's the best tool I need to use to achieve my goal.  I Tried using Join Tool but can't really achieve the output that I need.

 

Goal: Match Supervisor ID and L1 ID.  Result should show under New L1_Name

 

Sample Table:

 

Table 1

 

ID Employee NameSupervisor IDSupervisor NameNew L1 Name
1John7John Doe 
2Mike8Mike Jordan 
3Anne9Anne Hat 
4John7John Doe 
5Mike8Mike Jordan 
6Anne9Anne Hat 

 

Table 2

 

L1 IDL1 Name
7Johnny Doe
8Michael Jordan
9Anne Hathaway
3 REPLIES 3
alexnajm
17 - Castor
17 - Castor

Why does the join tool not work in this case? that’s exactly what I would use

rjesus1987
5 - Atom

Hello,

 

Apologies for the confusion.  I need to match Supervisor ID and ID using Employee Name as a "Lookup Array" and result should appear under new L1 Name.

 

Below is the updated table:

 

IDEmployee NameSupervisor IDSupervisor NameNew L1 Name
1John7John Doe 
2Mike8Mike Jordan 
3Anne9Anne Hat 
4Jane7John Doe 
5Michelle8Mike Jordan 
6Ana9Anne Hat 
7Johnny Doe10Harry Potter 
8Michael Jordan11John Snow 
9Anne Hathaway12Beyonce Knowles 

 

 

Output:

 

IDEmployee NameSupervisor IDSupervisor NameNew L1 Name
1John7John DoeJohnny Doe
2Mike8Mike JordanMichael Jordan
3Anne9Anne HatAnne Hathaway
4Jane7John DoeJohnny Doe
5Michelle8Mike JordanMichael Jordan
6Ana9Anne HatAnne Hathaway
7Johnny Doe10Harry Potternull
8Michael Jordan11John Snownull
9Anne Hathaway12Beyonce Knowlesnull
alexnajm
17 - Castor
17 - Castor

You would still use a Join tool - however, you would also add a Union afterwards and bring in the J and the L anchors to replicate a "left Outer Join". That will keep all the records from the first data set if there is a match or not a match

Labels