community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
#SANTALYTICS

The highly anticipated Alteryx Community tradition is back! We hope you'll join us!

Learn More
SOLVED

Joining 2 columns within a single data set based on a common string

Asteroid

Hello,

 

Can anyone help me with a solution for joining two fields within a single data set based on both containing a common string part (not an exact match). I want to separate the matches from the non matches. 

 

Thanks

@mattlukoff

I would suggest:

First, assign a row ID to each row; then parse the strings by every space so each word is in its own row.

If case doesn't matter, you could then add a formula tool to set the string to all caps.

Then apply the same filter you already used, group by row ID and join back to the original row.

Check out the attached.

 

Pulsar

Based on your attached workflow, it looks like the only thing you need to do is remove the quotes from your filter: Contains([Field 2], [Field 1])

 

Let me know if I've misunderstood.  Note that the filter assumes that the entire [Field 1] is contained somewhere in [Field 2].

Highlighted
Asteroid

thanks @danrh that was a quick fix!

 

 

 

 

 

 

 

 

 

 

 

Labels