Alteryx Designer Desktop Discussions

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

Like SQL - Contains on a field name

kathbanc
8 - Asteroid

Hi Alteryx Community, 

 

Need your help on this. I tried the IFELSE condition but it has error. Please help me, thank you in advance. 

 

Sample 

 

NameName 2Output
OrangeOrange, Bananamatched
AppleOrange, Applematched
OrangeOrangematched
OrangeAppleUnmatched
7 REPLIES 7
Qiu
20 - Arcturus
20 - Arcturus

@kathbanc 
We can use the Contains Function in the Formula tool.

If contains([Name],[Name 2]) then 'Matched' else "Unmatched" endif
kathbanc
8 - Asteroid

Hi @Qiu,

 

the Orange,Banana result should be matched. Please see attachment . 

 

 

 

caltang
17 - Castor
17 - Castor

I think what @Qiu meant was like this:

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Qiu
20 - Arcturus
20 - Arcturus

@kathbanc I should have tested it first. Sorry.

The arguments in the function Contains were in wrong order.

@caltang 
Thank you for the correction.

1002-kathbanc.PNG

kathbanc
8 - Asteroid

Hi @Qiu  @caltang Thank you both so much!!!!! 

caltang
17 - Castor
17 - Castor

If the above solved your need, kindly like & mark as accepted solution so that you may help others find the solution more quickly + to close the thread as is. Thanks!

Best regards,
Calvin Tang
https://www.linkedin.com/in/calvintangkw/

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Qiu
20 - Arcturus
20 - Arcturus

@kathbanc 
Glad to be any help. 😁

Labels