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.

Multi-Field Formula If statement

LizB
5 - Atom

Hi, I'm hoping to create a formula to read across multiple fields. If the fields contains a certain string, I would like to output just 1 filed with that string. For example in the below dataset, just output 'Red':

 

I tried the following multi-field formula, but it outputs multiple fields, when I just want one. Any input would be great!

if contains([_CurrentField_],'Red') then [_CurrentField_] else null() endif

 

liz1_0-1615330841044.png

 

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@LizB 
I think you are correct, the MultiField tool may not be fit here.

Can we try something else?

Capture3.PNG

fmvizcaino
17 - Castor
17 - Castor

Hi @LizB ,

 

I think there is no direct way of doing it, so here a suggested workflow for what you need to achieve.

 

fmvizcaino_0-1615331479086.png

 

 

Best,

Fernando Vizcaino

LizB
5 - Atom

Thank you, this works!

Labels
Top Solution Authors