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 Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

IF Statements to Quote Different Columns

JTB76
8 - Asteroid

Hi There.

 

I am sure I am making this more complicated than I need to, but its been a long Monday!  What I need to do is to say:

 

IsEmpty([Issue Plan ID]) = [Issue Owner Email] or !IsEmpty([Issue Plan ID]) = [Business Emails]  Endif

 

So, if Issue Plan ID is empty (or null) then I want to have the Email address from column 'Issue Owner Email' pulled in for everything else I want the data from Column 'Business Emails' pulled in.

 

Any help of any nature would be very much welcome!  Thanks all

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @JTB76 

 

Your formula should be something like this.

 

 

IF IsEmpty([Issue Plan ID]) 
THEN [Issue Owner Email] 
ELSEIF !IsEmpty([Issue Plan ID]) 
THEN [Business Emails] ELSE Null() ENDIF

 

or simply

 

IF IsEmpty([Issue Plan ID]) 
THEN [Issue Owner Email] 
ELSE [Business Emails] ENDIF

 

 

You can use Mult-Field formula tool to apply on multiple columns too.

https://community.alteryx.com/t5/Interactive-Lessons/Multi-Field-Formulas/ta-p/424422

 

Hope this helps 🙂

 

JTB76
8 - Asteroid

Awesome!  Worked a treat. Thanks for that