Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Issue with contains function

geeksqaud
8 - Asteroid

i am trying to compare 2 fields. not sure what i am missing but i am not getting the correct result.

 

if Contains([Field2], ([Field1])) then 'YES' ELSE 'NO' ENDIF

 

Field1          Field2                                                              RESULT
114627       114627@74945@@97564@@@@@@@@@                   YES
11                  1@2@0                                                                   NO
6                   6560@752925@823142@629206@644744           YES

 

 

Appreciate your help!!!!

 

6 REPLIES 6
Qiu
21 - Polaris
21 - Polaris

@geeksqaud 
What is the correct result?

geeksqaud
8 - Asteroid

if you look at last 2 records

 

11                  1@2@0                                                                   NO 

 

6                   6560@752925@823142@629206@644744           NO

 

i want 'YES' if it is an exact match like record 1

 

114627       114627@74945@@97564@@@@@@@@@                   YES

geeksqaud
8 - Asteroid

11                  1@2@0                                                                   NO 

 

6                   6560@752925@823142@629206@644744           NO

 

114627       114627@74945@@97564@@@@@@@@@                   YES

geeksqaud
8 - Asteroid

11                  1@2@0                                                                   NO 

 

6                   6560@752925@823142@629206@644744           NO

 

114627       114627@74945@@97564@@@@@@@@@                   YES

caltang
17 - Castor
17 - Castor

Like so?

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

Sorry @geeksqaud just read your new comments. Like so?

image.png

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