Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula question

Sjkitts
7 - Meteor

Hello I'm trying to create a statement in a formula tool that takes 3 different columns and if a cell says None, None I would just like it to say None, instead of just saying None, None.  

 

I tried to write a statement like this but it obviously didn't work. 

 

If [Custom Value 5], [Custom Value 6], [Custom Value 7]  = None, None THEN ELSE set to 'None' ENDIF

 

See screenshot for an example

 

 

4 REPLIES 4
Robin_McIntosh
11 - Bolide

if [custom value 5] = 'None, None'

then 'None'

else [custom value 5]

endif

IraWatt
17 - Castor
17 - Castor

Hey @Sjkitts,

One way to apply this to multiple columns is using the multi field formula tool:

IraWatt_0-1657134413439.png

you cant reference multiple fields in one formula like  "[Custom Value 5], [Custom Value 6], [Custom Value 7]" also you need to add quotes None, None as its text.

Any questions or issues please ask :)
HTH!
Ira

Robin_McIntosh
11 - Bolide

Sicne you are concatenating 3 columns, would there ever be None, None, None?  If so, then just update the formula as:

 

if [custom value 5] in('None, None', 'None,None,None') 

then 'None'

else [custom value 5]

endif

Sjkitts
7 - Meteor

Thanks!

Labels
Top Solution Authors