Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Duplicates Identified by Limited Matches

mustufa2019
8 - Asteroid

I want to create a workflow that will match the first 8 characters (i can change the length of the  character matches)  of  of the "supplier Name" field and the "Supplier Status" field and will create a report showing these matches. Hence, if at least the first 8 characters of these two fields match, flag them. Should i use fuzzy matches for this? see below example input and output of data 

 

Input (Characters in bold match between the two fields so they will be flagged and in output example)

Supplier Short NameSupplier NameSupplier Additional NameSupplier Status
WOSMITHNAS-001WOSMITHNASHVILLECOMMUNITYMUSICWOSMITHNASHVILLEA
WOSMITHNAS-001WOSMITHNASHVILLECOMMUNITYMUSICSCHOOLA
DON KENT T-001DONKENTTREASURERRIVERSIDECOUNTYTREASURERA
DRAMA BOOS-001DRAMA BOOSTERSCOTHURSTONMIDDLESCHOOLA
DRAWBRIDGE-001FULTONTAXFULTONTAXCAPITALA
MAYOR'S FU-001NEWYORKNEWYORKCITYA
MEDICAL DE-001MEDICALDEVELOPMENTSPECIALISTSCONSULTINGA
MEDICAL DE-001MEDICAL DEVELOPMENT SPECIALISTSCONSULTINGA

 

Output (showing the matches

Supplier Short NameSupplier NameSupplier Additional NameSupplier Status
WOSMITHNAS-001WOSMITHNASHVILLECOMMUNITYMUSICWOSMITHNASHVILLEA
DRAWBRIDGE-001FULTONTAXFULTONTAXCAPITALA
DRAWBRIDGE-001FULTONTAXFULTONTAXCAPITALA
2 REPLIES 2
DavidP
17 - Castor
17 - Castor

Why don't you use the LEFT() function, i.e.

 

if left([Supplier Name],8) = left([Supplier Additional Name],8) then 'A' else '' endif

mustufa2019
8 - Asteroid

@david thank you, this worked

Labels