Alteryx Designer Desktop Discussions

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

Another pair of eyes on a simple If Then Statement

mattlukoff
8 - Asteroid

Hi, can anyone take a look at this. Not understanding why I'm not getting the desired output.

Thanks

2 REPLIES 2
Joe_Mako
12 - Quasar

How about the attached?

 

I removed the NOT operator ! and set the data type to Int32 for all fields.

Federica_FF
11 - Bolide

Hi, I think you may want to remove the exclamation point.

 

Right now you're telling the formula tool:

 

IF !ISNull([Key 1]) then [Right Key 1]
// if NOT is null Key1 then Right Key


Else Null()
// else Null()
ENDIF

 

Key1 is actually null, so you're getting the "else" part of your IF statement.

Labels