Hi All,
Could you please help with the below query.
I am looking to match the attached data set based on Currency and Amount to create pairs (of 2 each). Amounts are to be matched within a tolerance of 1 (within the same currency).
Kindly help with a solution for this.
Expected output attached
Thanks
Solved! Go to Solution.
Hi @griseldagomes,
If I deciphered your pairing correctly, you are not only required to create pairs based on amount value with sensitivity limit of 1, but also based on absolute value.
In most likely not the most advanced way, I would suggest:
Hi @griseldagomes,
To eliminate such cases as with RUB, you can add a variance check:
Your solution is working fine until the summarize tool.
In my current data, one currency is appearing only once as a pair in the input for the summarize tool.
However, assuming one particular currency appearing 4 times (as shown in the snapshot attached) then the summarize tool is grouping it up at a currency level and is unable to show exact pairs.
How can I tackle that scenario please?
Also I'd like to do a vlookup using the unique ref in the final output of the join tool to add the unique id's to the initial input file. I tried the find and replace tool, however unique id field is not appearing there. How can I get this done please?
In the scenario when you can have multiple pairs for the same currency, I suggest to not untick Abs Amount (Left) field in three join tools.
Then, we adjust summarize tool to group by currency and group by abs amount. That allows to check each pair variance individually.
Then, we need to add second join condition in the join that joins back to our filtered data to join on Abs Amounts as well.
Not too sure what you are trying to do using find and replace tool, but unique ref fields do not appear in options, because they have data type of byte, and the match can only be done in find and replace tool using string fields. I added two options in bringing in paired amounts to original data set in attached solution.
thanks for your help with this @AnnaMikhaylova
@griseldagomes , apologies, attached the wrong file accidentally.