Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Paired matches from 2 sources

aka_ash
8 - Asteroid

Hi,

I am working on workflow that performs matching on several fields for large volumes of data.

I built the matching in the workflow around the Join tool then reconciling the joins to the source to split into individual rows with an additional status of "Match" if matched.

 

I have an issue where i might have 2 records in a source that matches against a single record that meets all the matching criteria.
I would prefer that the excess record\s not flag as a match, so i only see pairs of records that have matched from both sources, the excess would flag as not matched.


Is there any modification i can make to flag as excess matching records as not matching?

 

I have some sample data and a screenshot of sample workflow for this scenario as well, the 3rd and 4th record in source 1 is the item matching against a single record in source 2.

 

Thanks in advance,

Ash

 

SourceData 1Data 2Data 3Data 4Data 5
1abc123Apples87623awee-878
1qwe321Oranges324234awfd-234
1asd876Grapes555543awgg-44
1asd876Grapes555543awgg-44
1lpo345Apples345bbjh-123

 

SourceD-1D-2D-3D-4D-5
2abc123Apples87623awee-878
2qwe321Oranges324234awbb-234
2asd876Grapes555543awgg-44
2lpo345Apples345bbjh-123
8 REPLIES 8
grazitti_sapna
17 - Castor

Hi @aka_ash , will something like this work for you?If this is not what you are looking for kindly attach a desired output for better understanding.

 

 

grazitti_sapna_0-1602574290223.png

 

And, if this is what you are trying to achieve kindly mark this post as solution.

Thanks.

 

Sapna Gupta
Qiu
21 - Polaris
21 - Polaris

@aka_ash 
Can we just use the Unique tool first before joining? it would be simple and easy to understand.1013-akaash.PNG

OllieClarke
15 - Aurora
15 - Aurora

Hey @aka_ash if you don't want any rows that match multiple rows in the other source to come through, then I'd recommend using the Only Unique CReW Macro on both streams like this:

OllieClarke_0-1602582064684.png

hope that helps

 

atcodedog05
22 - Nova
22 - Nova

Hi @aka_ash 

 

As per what i could understand by your words "flag excess matching records as not matching" if there are duplicate rows to want to match 1st duplicate row of source 1 to source 2, since there is 2nd duplicate row in source 1 and not in source 2 it should be in unjoin.

 

Input : the table provided by you.

Outputs

Join:

Capture3.PNG

Left-unjoin:

Capture4.PNG

Right -unjoin:

Capture5.PNG

Workflow:

Capture6.PNG

Hope this helps 🙂

 

If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Qiu
21 - Polaris
21 - Polaris

@aka_ash 
yes, please mark our solutions as accepted.

aka_ash
8 - Asteroid

Thanks @grazitti_sapna@OllieClarke@Qiu,@atcodedog05

 

I believe the Multirow formula @grazitti_sapna, will work for my scenario as will the tile approach i think with some tweaking @atcodedog05.

 

Unfortunately regarding the other 2 solutions would not work for my scenario as i still need all the data to go through the matching.

 

Thanks again all,

Ash

Qiu
21 - Polaris
21 - Polaris

@aka_ash 
Thanks for the comment. Good to to know it get solved.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @aka_ash 

 

Cheers and Happy Analysing 😀

Labels