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

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