Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

If Contains Formula

SH_94
11 - Bolide

Dear Community,

 

May i know how to write the complete formula for the following :

1.If contain A, then give me " A "

2. If contain B, then give me  "B"

3. If contain other than A and B , then give me " others"

 

I know how to write for the step 1 and 2 as follow but not sure how to write the step 3.

IF Contains ([production_companies], "A") THEN "A"
ELSEIF Contains([production_companies], "B") THEN "B"

 

Many thanks in advance

1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @SH_94 

 

Complete it like 

 

IF Contains ([production_companies], "A") THEN "A"
ELSEIF Contains([production_companies], "B") THEN "B"

ELSE "Others" Endif

 

Hope this helps : )

Labels