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

How to match two strings

Saravanan13
8 - Asteroid

Hello All,

 

I am looking to match two names name1 and name2, Even when the name is reversed the outcome should should say match.

 

Can anyone assist.

 

Name1Name2
Mohit SharmaSharma Mohit
3 REPLIES 3
cjaneczko
13 - Pulsar

Does this work?

 

image.pngimage.png

acarter881
12 - Quasar

Hello, @Saravanan13.

 

Here's a way to do it in a single formula (see attached).

flying008
15 - Aurora

Hi, @Saravanan13 

 

Try this formula for field [Match] :

[Name1] = [Name2] || ( GetWord([Name1], 0) = GetWord([Name2], 1) && GetWord([Name1], 1) = GetWord([Name2], 0) )

 

Labels