Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start 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