Alteryx Designer Desktop Discussions

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

Matching of data from different files

arieta
8 - Asteroid

Hello,

I have two files in my workflow, and I want to match one column from file 1 with a column from file 2. So, when column from file 1 displays the same text as column from file 2, the data from file 1 match together. However, when column from file 1 displays slightly different text from column in file 2, the data should not match and the output is blank cells. Please see below an example:

 

Column from file 1:

Column file 1

Banana apple all oranges

Banana two apples oranges

Banana one apple one orange

Banana kiwi all apples

Banana apple all oranges two

 

Column from file 2

Column file 2

Data that need to follow

Banana apple all oranges

0.05

Banana one apple one orange

0.1

Banana two apples oranges

2

Banana apple melon

0.3

 

 

 

Output as I need it to be (combined and matched):

Column from file 1

Column from file 2

Data

Banana apple all oranges

Banana apple all oranges

0.05

Banana two apples oranges

Banana two apples oranges

2

Banana kiwi all apples

[blank]

[blank]

Banana one apple one orange

Banana one apple one orange

0.1

Banana apple all oranges two

[blank]

[blank]

 

However, please note that the one from the column in file 2 that do not match with text from the column in file 1 (e.g. Banana apple melon) I want them in a separate output.

Could you please help me with this? Thank you!

2 REPLIES 2
AbhilashR
15 - Aurora
15 - Aurora

Hi @arieta, does the attached solution get you what you are looking for?

AbhilashR_0-1589904192930.png

I joined the two datasets using the Join tool on the common keys and used a Union tool downstream to bring multiple outputs of the Join back together. Let us know if this is not what you were looking for.

 

 

arieta
8 - Asteroid

Thank you very much - it works!

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels