Calling all Alteryx customers: Refer your colleague to try Alteryx and receive a $50 gift card. Sign up now!
Free Trial

Alteryx Designer Desktop Discussions

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

IF AND Statement error

Hi,

 

I'm hoping that may be able to help me with writing a formula.

 

I have a couple of fields that I want met to insert data into a new field, when I write them as separate formulas they work correctly but when I try to join them using AND I receive an error, example below.

 

I can't for the life of me work out what's going on, any help is appreciated.

 

IF AND example.PNG

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @Litlle_red_trucks ,

 

You got it almost right! The only problem is your if, you don't need to write an 'if' to every comparison in a clause. So the right way is:

 

IF [Real Node] = 'Interval' and [Task] = 'Deliver Product'

then 'yes'

else null()

endif

 

Let me know if that works for you.

Best,

Fernando Vizcaino

OMG! 

Thank you so much, I knew it would be something simple (it always is) but for some reason it takes me forever to work it out. 

Labels
Top Solution Authors