Alteryx Designer Desktop Discussions

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

{Urgent} renaming field based on condiion

AnanditaShankar
8 - Asteroid

Hi. I want to replace "None" in GSAP_PLANT_MAPPED column with Y01Q based on the condition that LOC_NM_REMAPPED is CHATTANOOGA, TN-LINCOLN TERMINAL. i am using formula tool where I used below expression IF [LOC_NM_REMAPPED]= "CHATTANOOGA, TN-LINCOLN TERMINAL" && [GSAP_PLANT_MAPPED]="None" THEN [GSAP_PLANT_MAPPED]="Y01Q" ELSE [GSAP_PLANT_MAPPED] ENDIF

 

But this is not working. Any help is appreciated. thanks in advance

4 REPLIES 4
Towers
11 - Bolide

@AnanditaShankar 

Heres one way 

Towers_0-1679665497026.png

 

BS_THE_ANALYST
14 - Magnetar

@AnanditaShankar  check your IF statement:

Your logic is all correct, you just need to understand that after the THEN statement, you don't need to tell it: Column = Value. Just write the value you want to fill in, it understands already what column it is working on because you tell it here:

BS_THE_ANALYST_0-1679665796216.png

 

 

BS_THE_ANALYST_2-1679665679781.png

 

i.e:

 IF [LOC_NM_REMAPPED]= "CHATTANOOGA, TN-LINCOLN TERMINAL" && [GSAP_PLANT_MAPPED]="None" THEN "Y01Q" ELSE [GSAP_PLANT_MAPPED] ENDIF

AnanditaShankar
8 - Asteroid

Thanks . It worked

AnanditaShankar
8 - Asteroid

Thank you @BS_THE_ANALYST  @Towers 

Labels