Alteryx Designer Desktop Discussions

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

Creating an IF Statement in the Formula Tool

Andrew_Seaman
6 - Meteoroid

I need to create an if statement that creates a new column, but I'm running into Syntax issues.

 

IF [TIME] IS NOT NULL

THEN .027

ELSE

NULL

END AS [NEW FIeld]

 

What is the Alteryx syntax for this?

 

 

Andrew_Seaman_1-1585259887518.png

 

1 REPLY 1
AbhilashR
15 - Aurora
15 - Aurora

The syntax would be

IF !(ISNULL([TIME]) THEN 0.27

ELSE NULL()

ENDIF

 

Remove the space in ENDIF

Labels