Alteryx Designer Desktop Discussions

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

vlookup with multiple values

Chauche
7 - Meteor

Hi Experts,

 

I am looking up for a way to VLOOKUP raw file data with Master file data and concatenate same values in raw as result based on short or long Identifier available in Master file. Any quick help is appreciated.

 

Master file data

Short IdLong id
abcUS123
pqrIN123
pqrIN123
xyzRU345
abcUS123
rstAU456

 

 

Raw file (have mix of Master file short & Long identifier)

ValuesIdentifier
1cyv34abc
tyvn341pqr
ghiet12pqr
450njyeRU345
gui534abc
nbde890AU456

 

Result in raw file required

ValuesIdentifierResult
1cyv34abc1cyv34; gui534
tyvn341pqrtyvn341; ghiet12
ghiet12pqrtyvn341; ghiet12
450njyeRU345450njye
gui534abc1cyv34; gui534
nbde890AU456nbde890
3 REPLIES 3
taylor_butler
Alteryx Alumni (Retired)

Hi @Chauche , 

There are likely a number of different ways to get to your result. I've attached mine below for your reference. To summarize, I used the Find & Replace tool to append the Identifier from the Master File if the ID is found in the Raw Data file & then concatenated Values that have the same ID. From there I matched the data back up to the raw data file. 

 

Let me know if you have any questions! Interested to see if anyone is able to achieve this in fewer steps.

 

 

taylor_butler_0-1657289358977.png

 

 

flying008
14 - Magnetar

Hi, @Chauche 

 

the other way for you :

 

录制_2022_07_09_12_30_49_294.gif

Chauche
7 - Meteor

Hi @taylor_butler

 

Thanks for the solution. I can see you have find & replace the short id but not the Long Id which I did taking help from your solution.

Thanks again.

Labels