We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Compare two files and have the output be the data from one file if it's NOT in the other

gtoribio1
5 - Atom

Hello, 

 

I am trying to compare two files (File A and File B) and i only want the data in File A if it is NOT in File B. 

 

What i have done so far is combined both files using "Join".

 

Thanks!

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @gtoribio1, depending on which way round you have plugged the data in to the Join input anchors, the data that doesn’t match will either come out of the top (L) output anchor, or the bottom (R) output anchor. The middle anchor (J) is where a match was found and the data is joined, the L anchor is data that goes into the top input anchor and doesn’t find a match and the R anchor is the same for data going into the bottom input anchor. Here's a quick example:

 

My left input:

DataNath_0-1667337858780.png

 

Right input:

DataNath_1-1667337872484.png

 

We conduct the join on [Name] and so only the 'B' is present in both for a join:

DataNath_2-1667337902842.png

 

Records from the left input that didn't find a match come out of the top L anchor:

DataNath_3-1667337922377.png

 

And the same for the right:

DataNath_4-1667337934263.png

gtoribio1
5 - Atom

Thank you!

 

That makes sense!

 

 

Labels
Top Solution Authors