Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Replace Formula

Ayaanarjun-5885
8 - Asteroid

Hi, I have few IDs and I wanted to replace them using single formula tool with below referred values and extract the min value in another new column. Can someone help me with this. Replacement values are,

ABC=1
XYZ=2
PQR=3
UVW=4

 

Input:

IDs
ABC,XYZ
PQR 
PQR,ABC,UVW
UVW,PQR
XYZ,PQR
ABC

 

Output:

IDsReplacing IDs with referred valuesMin value
ABC,XYZ1,21
PQR 33
PQR,ABC,UVW3,1,41
UVW,PQR4,33
XYZ,PQR2,32
ABC11
4 REPLIES 4
aatalai
15 - Aurora

@Ayaanarjun-5885 take a look at this and let me know if it helps

 

replace formula.PNG

binuacs
21 - Polaris

@Ayaanarjun-5885 Here is another way

image.png

terry10
12 - Quasar

@Ayaanarjun-5885 , Here's another way you can accomplish this using the Switch function. I hope this is useful!

 

replace formula.PNG

terry10
12 - Quasar

Be sure to check your results when using the Find-Replace tool. Sometimes the output is not what's expected.

Labels
Top Solution Authors