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.
RÉSOLU

Formula tool IF statement-multiple conditiions

hbland2
Météoroïde

I am getting error on the below formula. Please help.

 

IF[Age]>=180,IF([Age],365,IF(ABS([Amount in local cur.])<250000,[Amount in local cur.],0),0),)

 

Thanks!

12 RÉPONSES 12
vizAlter
Quasar

@hbland2  — Can you attach your workflow with input data file, so that we could review?

 

What is the data type of your each field?

Hi @hbland2 , check the datatype of the fields that you ar applying formula to.

grazitti_sapna_1-1600921654558.png

 

Try using these datatypes mentioned above.

 

grazitti_sapna_2-1600921699180.png

 

You are using double in your formula as datatype I believe the datatype of your field age is string that is why you are getting this error.

 

Thanks.

 

 

Sapna Gupta
ImadZidan
Quasar

Hello @hbland2 ,

 

This is todo with the age datatype in your data. It might be a string. 

 

IIF (ToNumber([Age])> 180 AND tonumber([Age]) <=365 and ABS([Amount in local cur.])<250000, [Amount in local cur.],0)

 

 

Étiquettes
Auteurs des meilleures solutions