Alteryx Designer Desktop Discussions

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

How to get rid after using join as VLOOKUP in Alteryx? duplicate records appearing.

kapilthakur
7 - Meteor

Hi everyone,

 

Let me share the source data.

 

Source 1:

Emp_ idNameDate Business Location 
879362Ashish P10/08/2023 OFFICE
879362Ashish P11/08/2023 WFH
879362Ashish P12/08/2023 WFH
879363Kapil T10/08/2023 OFFICE
879363Kapil T11/08/2023 WFH
879364Anand S10/08/2023ABCOFFICE
879364Anand S11/08/2023ABCWFH
879365Priya T10/08/2023CDEWFH
879367Deepika K10/08/2023EFGWFH
879367Deepika K11/08/2023EFGWFH

 

Need to apply VLOOKUP on another source where I have information of EMP_ID with groups. 

Source 2:

EMP_IDBusinessAge
879362CMT29
879364ABC27
879365CDE30
879367EFG35

 

If I use join (as a VLOOKUP) it will give me output for EMP_ID 879362 with appropriate Business. For EMP_ID 879363 It would not give any value in business.

 

I have another source in which for 879363EMP_ID 879363 is available and need to do again VLOOKUP!

Source 3:

EMP_IDBusinessAge
879363GES35

 

What to do in such case. Can anyone help me with their opinion?

It's a sample data in real it has around 30k records. 

I observed that after using Join we get repetitive same records.  

 

Sample output-

Emp_ idNameDate Business Location 
879362Ashish P10/08/2023CMTOFFICE
879362Ashish P11/08/2023CMTWFH
879362Ashish P12/08/2023CMTWFH
879363Kapil T10/08/2023GESOFFICE
879363Kapil T11/08/2023GESWFH
879364Anand S10/08/2023ABCOFFICE
879364Anand S11/08/2023ABCWFH
879365Priya T10/08/2023CDEWFH
879367Deepika K10/08/2023EFGWFH
879367Deepika K11/08/2023EFGWFH
2 REPLIES 2
binuacs
21 - Polaris

@kapilthakur one way of doing this

image.png

PhilipMannering
16 - Nebula
16 - Nebula

If you're looking to overwrite the original [Business] column you can deselect it in the Join Tool.

If you're getting duplicates then you have duplicates in the source data. I would combine Source 2 and Source 3 first → remove duplicates (prioritizing the file you want to keep) and then Join. Here's my solution attached,

image.png

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels