Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Assign Values to Multiple Fields in If Formula

bgdvorak
5 - Atom

I'm struggling with this, and here is the scenario. I have 3 fields and trying to evaluate Field1 and assign values to both Field2 and Field3

 

If Field1 = "Yes", then

    Field2 = "Assignment 1"

    Field3 = "Assignment 2"

end if

 

Is this possible in one formula statement?  I have accomplished this by using 2 different formulas, but makes my workflow a little cumbersome. 

 

Thanks. 

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @bgdvorak, I wouldn't have thought 2 expressions in 1 Formula tool is that bad for performance etc. However, if you are still keen to do it in one, you could use a Multi-Field Formula tool like so:

 

DataNath_0-1660075476927.png

bgdvorak
5 - Atom

Thank you. That worked great. 

Labels
Top Solution Authors