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

IF/ELSE

razzy
8 - Asteroid

Can someone help to debug this formula please it is giving me the error.

Error: Formula (21): Parse Error at char(52): Malformed If Statement (Expression #2)

IF(0>=[Age at DOV]<= 10)
THEN " 0-10"
ELSE Null()

// Data type of [Age at DOV] is int. I am trying to create a new column defined by set of categories using IF , ELSEIF conditions but the first parse is giving me an error . I am using the formula tool to create the conditions.

Thanks

1 REPLY 1
jdunkerley79
ACE Emeritus
ACE Emeritus

You need to specify the range as two conditions.

 


IF ([Age at DOV] >=0 AND [Age at DOV] <= 10) THEN " 0-10" ELSE Null() ENDIF

 

You also need to close the IF clause with an ENDIF

Labels
Top Solution Authors