Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Trying to change value of a field based on the result of an if statement

SamCrowell
5 - Atom
 

 

I am trying to use an if statement to change the value of the field but continue to run into errors. Will an if statement work here or if not what is the best method to do so? Thank you

 

 

IF [MoonRoof] = 1 THEN [MoonRoof_Cost] =825

ELSE [MoonRoof_Cost] = 0
ENDIF

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

This should work!

 

IF [MoonRoof] = 1 THEN 825

ELSE 0
ENDIF

SamCrowell
5 - Atom

I am trying to make it so that it changes the value of a different field (MoonRoof_Cost). Is that possible to do with this formula?

 

Thank you

alexnajm
18 - Pollux
18 - Pollux

Yep, you just have to select the field where it says "Select Column" to it goes there!

Trying to change value of a field based on the result of an if statement.png

Labels
Top Solution Authors