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

Using a formula as a return value (THEN) in IF statement

Vwest
6 - Meteoroid

Hi All,

I am trying to use a formula using existing columns as the return value after THEN in an IF statement and am receiving the Unmatched error when reaching the 2nd Then statement shown in red below. I have the data type set to Double. Any suggestions on what may be causing the error and how it can be fixed?

 

IF [x] > 0 OR [z] = "Yes"

Then 0

Elseif (ABS ([x]) > (ABS([m-y]))

Then [m-y]

Else [x]

Endif

1 REPLY 1
Luke_C
17 - Castor
17 - Castor

Hi @Vwest 

 

I think you're missing a parenthesis at the very least. Try the below

 

IF [x] > 0 OR [z] = "Yes"

Then 0

Elseif (ABS ([x])) > (ABS([m-y]))

Then [m-y]

Else [x]

Endif

Labels
Top Solution Authors