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

Col 1 look up to Col 2

samxhander09
8 - Asteroid

Hi Community! I have 2 columns that shares common fields. What I want to do is to check Whether Code_Left contains ANY value from Code_right and return as TRUE(if contains) or FALSE(if does not contain any). See below for reference:

Logic.png

 

3 REPLIES 3
samxhander09
8 - Asteroid

Right now, i have it setup like the below, which looks quite tedious to me, so im checking if you know a simpler way.

SETUP.png

Bren_Spill2
12 - Quasar
12 - Quasar

@samxhander09 -  does the attached work for you?

KGT
13 - Pulsar

Try this:

IF Contains(ToString([Right_Code]), ToString([Code]))
THEN "True"
ELSE "False"
ENDIF

 

This converts them to string in-line, but you could always convert to string beforehand if you wanted.

 

AlteryxGui_40G7qV42hD.png

Labels
Top Solution Authors