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.

How can I do a reconciliation process on two data set

Sshasnk
8 - Asteroid

Hi All,

 

I have two data set and I want to do a reconciliation process to check if both the data sets have same the value or different value.

Now, I know I can do it with formula too say TRUE or FALSE but I have 120+ fields to check so I don't want to write formula for all.

 

Example:

Dataset 1 

ID namesource id 1source id 2source id 3final id 1final id 2
123ABC13121
234GHD2  32
12KLF34 43
1KNI46454
234KNR57165

 

Dataset 2:

ID namesource id 1source id 2source id 3final id 1final id 2
123ABC14121
234GH2   2
12KLF31 43
1KNI45434
234KNR57165

 

Steps:

1. Join both the data set based on ID column 

2. Check if the dataset 1 data is there on dataset 2 or not. If dataset 1 value is present in data set 2 then true or false

 

Output

ID namesource id 1source id 2source id 3final id 1final id 2Right_ID Right_nameRight_source id 1Right_source id 2Right_source id 3Right_final id 1Right_final id 2Check_ID Check_nameCheck_source id 1Check_source id 2Check_source id 3Check_final id 1Check_final id 2
123ABC13121123ABC14121TRUETRUETRUEFALSETRUETRUETRUE
234GHD2  32234GH2   2TRUEFALSETRUETRUETRUEFALSETRUE
12KLF34 4312KLF31 43TRUETRUETRUEFALSETRUETRUETRUE
1KNI464541KNI45434TRUETRUETRUEFALSETRUEFALSETRUE
234KNR57165234KNR57165TRUETRUETRUETRUETRUETRUETRUE
6 REPLIES 6
Yoshiro_Fujimori
15 - Aurora

@Sshasnk ,

 

If there is not a reason you stick to the expected output as above, I would suggest using Expect Equal tool in CReW macro.

https://marketplace.alteryx.com/en-US/apps/419776/crew-expect-equal

 

 

aatalai
14 - Magnetar

you could use the exact equal method as @Yoshiro_Fujimori suggested assuming they are in the same order, another way could be transposing the data sets and joining on ID and Name, see workflow attached. @Sshasnk let me know how you get on.

Raj
16 - Nebula

\\deleted.

Raj
16 - Nebula

@Sshasnk 
one way of doing this
mark done if solved

Ashish_TN_Singh
5 - Atom

Thank you for sharing, cheers !

acotta17
7 - Meteor

Hi,

 

You could approach this by first sorting both datasets and then using the Join tool on record. After joining, tag the values flowing from the left and right as "False," while the joined records would be marked as "True." 

 

 

Could someone let me know if this would work?

Labels