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
20 - Arcturus
20 - Arcturus

@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