ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

conditional failing

AZAD
Meteoro

HI there, 

 

Not sure what is wrong with my conditions statement(?)

IF 0.97 <= [AVG] >= 1.03
THEN 0
ELSE 1
ENDIF

 

while running the workflow I am getting the following error (see attached PNG file). Can someone please quickly take a look?  

 

Thanks, 

Azad

7 RESPOSTAS 7
patrick_digan
17 - Castor
17 - Castor

@AZAD try this:

IF 0.97 <= [AVG]  AND [AVG] >= 1.03
THEN 0
ELSE 1
ENDIF
AZAD
Meteoro

Same error. 

AZAD
Meteoro

Same error. 

patrick_digan
17 - Castor
17 - Castor

@AZAD Is AVG perhaps a string? You can check by clicking on the line entering the formula tool. I would use a tonumber function to convert it:

IF 0.97 <= tonumber([AVG])  AND tonumber([AVG]) >= 1.03
THEN 0
ELSE 1
ENDIF

You'll also want to change this calculated field to a numeric type (like int16 or double).

AZAD
Meteoro

Oh yeah. I totally missed to checkout the datatype. 

 

Thanks, Patrick. Appreciate it. 

AZAD
Meteoro

So I fed that data into my Logistic model and got the error (see attached pic). Can you please let me know what this error is about? 

 

Thanks

patrick_digan
17 - Castor
17 - Castor

@AZAD I'm not as familiar with the logistic tool in Alteryx. I would start a new thread.

Rótulos
Autores com maior número de soluções