Alteryx Designer Desktop Discussions

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

Replace value from a column based on table (Match and replace)

Axis
Meteor

Hi all, 

I have a column like this : 

 

A
T
C
B
A
C
B
T
F
B
A

 

And I have an other table like this : 

AAPPLE
BBEER
CCOCA COLA
FFANTA
TTONIC

 

I want all the value in the column of my first table to be replaced by the matching value in the table. 

So final result should be : 

APPLE
TONIC
COCA COLA
BEER
APPLE
COCA COLA
BEER
TONIC
FANTA
BEER
APPLE


What is the quickest way to do it? 

Thanks a lot for your help. 

Best regards,
Axis

3 ANTWORTEN 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Axis one approach you can use is with a join tool. I mocked up an approach to showcase this. You can use the Find and Replace tool as well for a different approach.

RolandSchubert
16 - Nebula
16 - Nebula

 Hi @Axis ,

 

I think,  you can use the Find Replace tool. Connect the first table to the "F" input anchor, the second table to the "R" input anchor. In configuration, "Find  Within Field" would be the field in table 1, "Find Value" would be the first field in table 2, in addition set Find to  "Entire Field" and "Replace Text" to  the second field of table 2.

 

Let me know if it works for you.

 

Best,

 

Roland

TheOC
15 - Aurora
15 - Aurora

hey @Axis 

The easiest way would be the Find and Replace tool - or the Join tool.

Please find attached an example of both:

TheOC_0-1638537614082.png

 

 


Bulien
Umfrage
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!
Beschriftungen