Alteryx Designer Desktop Discussions

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

Find words from fixed list in a string and return as output

EstherT
Átomo

Hi all,

 

I've been trying to find certain codes/characters (coming from a second file) in a string and returning those as output in a separate column.

 

For example

Input 1

IDField 1
12345

203,311,A00,A003

67890K00,365,230,A00,A002,210

 

Input 2 (list)

 

code
A00
A001
A002

A003

B00
E002
K00

 

Desired output:

 

IDField 1Output
12345

203,311,A00,A003

A00,A003
67890K00,365,230,A00,A002,210K00,A00,A002

 

Any suggestions on which tools I should use?

 

Many thanks!

6 RESPUESTAS 6
FinnCharlton
Púlsar

Hi @EstherT , this workflow should do the job. Hope it helps!

binuacs
Arturo

@EstherT One way of doing this

 

binuacs
Arturo

@FinnCharlton Are you facing any issues uploading the images of your workflow? I am getting some weird error

FinnCharlton
Púlsar

@binuacs yeah I am, never seen it before. Glad it's not just me

l_waldram
Meteoroide

I found a previous thread with somebody with the same query, which was solved, linked here: 

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Find-multiple-values-in-string... 

nagakavyasri
Cuásar

Screenshot 2023-06-23 135053.png

Etiquetas