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_Spill
12 - Quasar

@samxhander09 -  does the attached work for you?

KGT
11 - Bolide

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