In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Invalid type operator <

Ben_D_S
6 - Meteoroid

How is the 2nd < causing this formula (which was copied from a class exercise so I know it should work) to not complete

IF [Avg Sales per Customer] < 100
THEN 'Low'

ELSEIF [Avg Sales per Customer]< 200
THEN 'Avg'

ELSE 'High'
ENDIF

3 REPLIES 3
binu_acs
21 - Polaris

@Ben_D_S make sure the data type of the field [Avg Sales per Customer] is numeric not string type

Chaoued
8 - Asteroid

Try This :

IF Tonumber([Avg Sales per Customer]) < 100
THEN 'Low'

ELSEIF Tonumber([Avg Sales per Customer]) < 200
THEN 'Avg'

ELSE 'High'
ENDIF

 

NB : The type of the new column is a string

Ben_D_S
6 - Meteoroid

Thank you!

Labels
Top Solution Authors