We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Compare two string columns

Wojtek_Dz
8 - Asteroid

Hi, I'm wondering if it is possible to find a match from one column into the next one. 
There are couple conditions:
- strings are not 100 % the same
- matched string could be in different row then the original one

Example:

Column_1Column_2Match 
ABC DEFDEF XYZTRUE- matched by DEF - this case I solved by STRSPN function


But what if I had this case:

Column_1Column_2 
ABC DEFASDFUZP 
ASDFDF123XYZ XXXX 
11111HHHDEF XYZ 
123XYZMMMKKK 
   

 

Result
Column_1    Column_2          Match
ABC DEF     DEF XYZ          TRUE
ASDFDF      ASDFUZP         TRUE
123XYZ       123XYZ XXXX   TRUE
11111HHH    MMMKKK          FALSE

1 REPLY 1
caltang
17 - Castor
17 - Castor

What you’re looking for is Fuzzy Matching. Mind you, Fuzzy Matching is an art and not a science. You may not get all the records as well depending on your settings in Fuzzy Matching. 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors