Start Free Trial

Alteryx Designer Desktop Discussions

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

Why I get 25 between the range 2-9

AlanoudF
7 - Meteor

AlanoudF_0-1686031614738.png

 

4 REPLIES 4
sparksun
11 - Bolide

It seems you're comparing strings instead of numeric values, that's the root cause.

Raj
16 - Nebula

This is something new.

Check the meta data of the column as you are using double inverted comas for condition.

 

Raj_0-1686033536159.png

 

with correct data type it will work.

Hope this make sense to you.

 

flying008
15 - Aurora

Hi, @AlanoudF 

 

The cleaning formula:

 

IF [AgeofVehhicle] > 9 THEN '10+' ELSEIF [AgeofVehhicle] > 1 THEN '2-9' ELSE '0-1' ENDIF

 

 

flying008_0-1686035573394.png

 

btw, your formula must remove quote around number after >= and <= .

nagakavyasri
12 - Quasar

Screenshot 2023-06-06 120613.png

Labels
Top Solution Authors