Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Formula tool IF statement-multiple conditiions

hbland2
6 - Meteoroid

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 REPLIES 12
vizAlter
12 - 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?

grazitti_sapna
17 - Castor

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
12 - 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)

 

 

Labels