Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

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
binuacs
21 - Polaris

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

Chaoued
7 - Meteor

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