We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

IF Formula - Invalid Type In Operator

javerna
5 - Atom

Hi! Can anyone help me understand why I'm getting the following error with my formula below: "Invalid type in operator <"

 

IF [AYR] < [PriorPrior]
THEN -9999
ELSE [AYR]
ENDIF

2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

You may be comparing a number or a string or vice versa - check your data types!

flying008
15 - Aurora

Hi, @javerna 

 

FYI.

 

IIF(ToNumber([AYR]) < ToNumber([PriorPrior]), -9999, [AYR])
Labels
Top Solution Authors