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

IF/THEN

nihou
8 - Asteroid

I have tried the formula: 

 

IF Contains([SysProdCode]"GAS") and Contains([Type]"Processing" THEN '03'
ELSE IF Contains([SysProdCode]"GAS" and [Type]"Treatment" THEN '04'

 

Source

SysProdCodeType
GasProcessing
GasProcessing
GasTreatment

 

Desire Output

SysProdCodeTypePC
GasProcessing03
GasProcessing03
GasTreatment04
3 REPLIES 3
nihou
8 - Asteroid

 

 

Ar13f
10 - Fireball

Dear @nihou 

 

please see the workflow below ... I hope this is what you are looking for

 

Nihou solution.png

Qiu
21 - Polaris
21 - Polaris

A master table should be easier for maitenance.

Capturew1.PNG

Labels
Top Solution Authors