Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

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

Highlighted
8 - 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

Highlighted
14 - Magnetar
14 - Magnetar

@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.

 

Highlighted
13 - 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
8 - Asteroid

thanks @danrh that was a quick fix!

 

 

 

 

 

 

 

 

 

 

 

Labels