In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
15 - Aurora
15 - Aurora

@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

All the best,
BS

LinkedIN

Bulien
AnanditaShankar
8 - Asteroid

Thanks . It worked

AnanditaShankar
8 - Asteroid

Thank you @BS_THE_ANALYST  @Towers 

Labels
Top Solution Authors