How to reconcile data with duplicate unique values

%3CLINGO-SUB%20id%3D%22lingo-sub-2972241%22%20slang%3D%22en-US%22%3EHow%20to%20reconcile%20data%20with%20duplicate%20unique%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2972241%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20reconcile%20large%20amounts%20of%20transactions%20created%20in%20POS%20system%20to%20the%20corresponding%20transactions%20processed%20thru%20the%20merchant%20account.%20The%20POS%20system%20often%20creates%20duplicate%20authorization%20codes%2C%26nbsp%3B%20the%20auth%20code%20is%20the%20unique%20value%20I%20use%20to%20reconcile%20the%20transactions%20in%20the%20merchant%20account.%20I%20do%20not%20want%20to%20delete%20the%20duplicates%20because%20they%20are%20part%20of%20the%20revenue%20being%20reconciled%20and%20need%20to%20be%20accounted%20for.%20At%20present%20I%20do%20a%20Conditional%20formatting%20-%20Highlight%20Duplicate%20Values%20in%20both%20sheets%20(POS%20%26amp%3B%20merchant)%20and%20manually%20amend%20duplicated%20auth%20codes%20to%20create%20a%20unique%20value%20-%20then%20I%20do%20a%20vlookup%20between%20the%20sheets.%20I%20have%20attached%20an%20example%20of%20%22raw%22%20data%20here.%20Auth%20Code%20103267%20appears%20twice%20in%20POS%20%26amp%3B%20merchant%20but%20one%20transaction%20is%20for%20%245%20and%20the%20second%20is%20for%20%2410.%20vlookup%20will%20only%20pull%20from%20the%20first%20instance%20in%20POS%20and%20that's%20why%20a%20differentiation%20needs%20to%20be%20made%20between%20the%20duplicated%20auth%20codes.%20Auth%20837480%20only%20appears%20once%20in%20POS%20but%20is%20duplicated%20in%20merchant%20data.%20vlookup%20treats%20it%20as%20a%20match%20when%20it%20isn't.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BetsyD_0-1637094322822.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327351i5716C82E3F5307A2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22BetsyD_0-1637094322822.png%22%20alt%3D%22BetsyD_0-1637094322822.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI'm%20wondering%20if%20there's%20perhaps%20something%20in%20Power%20Query%20that%20could%20deal%20with%20this%20type%20of%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2972241%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2973624%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20reconcile%20data%20with%20duplicate%20unique%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2973624%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1220623%22%20target%3D%22_blank%22%3E%40BetsyD%3C%2FA%3E%26nbsp%3BIf%20you%20mean%20to%20say%20that%20the%20total%20amount%20for%20an%20authorisation%20code%20in%20POS%20needs%20to%20be%20equal%20to%20the%20total%20for%20%3CSTRONG%3Ethat%3C%2FSTRONG%3E%20code%20in%20the%20Merchant%20data%2C%20you%20can%20indeed%20use%20PQ.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGroup%20both%20tables%20by%20%3CEM%3EAuthorisation%20code%3C%2FEM%3E%2C%20Sum%20%3CI%3EAmount%3C%2FI%3E.%20Then%20you%20can%20compare%20(i.e.%20merge)%20these%20two%20grouped%20tables%20and%20identify%20discrepancies.%20So%2C%20102367%20will%20be%20for%20%2415%20in%20both%2C%20which%20is%20OK%2C%20but%20837480%20will%20be%20%245%20in%20POS%20and%20%2410%20in%20the%20Merchant%20table%2C%20which%20is%20not%20OK.%20Correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I need to reconcile large amounts of transactions created in POS system to the corresponding transactions processed thru the merchant account. The POS system often creates duplicate authorization codes,  the auth code is the unique value I use to reconcile the transactions in the merchant account. I do not want to delete the duplicates because they are part of the revenue being reconciled and need to be accounted for. At present I do a Conditional formatting - Highlight Duplicate Values in both sheets (POS & merchant) and manually amend duplicated auth codes to create a unique value - then I do a vlookup between the sheets. I have attached an example of "raw" data here. Auth Code 103267 appears twice in POS & merchant but one transaction is for $5 and the second is for $10. vlookup will only pull from the first instance in POS and that's why a differentiation needs to be made between the duplicated auth codes. Auth 837480 only appears once in POS but is duplicated in merchant data. vlookup treats it as a match when it isn't.

BetsyD_0-1637094322822.png

I'm wondering if there's perhaps something in Power Query that could deal with this type of issue.

2 Replies

@BetsyD If you mean to say that the total amount for an authorisation code in POS needs to be equal to the total for that code in the Merchant data, you can indeed use PQ.

 

Group both tables by Authorisation code, Sum Amount. Then you can compare (i.e. merge) these two grouped tables and identify discrepancies. So, 102367 will be for $15 in both, which is OK, but 837480 will be $5 in POS and $10 in the Merchant table, which is not OK. Correct?

 

 

 

 

Hello @Riny_van_Eekelen 

Thank you for the reply. That may just work. I could identify auth codes with discrepancies and then I could just modify the ones where the totals don't match. I've been using a reconciliation method started by someone else and haven't taken the time to look back at the process to see if there's an easier way. Thanks for the perspective.