Define candidate identity before comparing amounts
To automate a supplier statement comparison, begin with the fields that identify a document: supplier account, document type, reference and currency. Compare amounts after that identity check. A matching amount is useful evidence but does not establish that two rows concern the same invoice. The proposed workflow produces matched candidates and exceptions for a bookkeeper; it does not post corrections or authorize payment.
Power Query supports joins on selected fields. Before joining, require the intended key to be unique on each side or deliberately route its multiple candidates for review.
Stage the two exports without losing the originals
- Save the supplier statement CSV and ledger CSV with their export times and reporting boundaries. Preserve row IDs from each file.
- Create separate normalized reference fields, documenting any trimming or case conversion. Keep original references beside them.
- Check required fields and data types. Confirm amount signs and currency meanings; a credit note is not an invoice with an inconvenient minus sign.
- Count candidate keys on both sides. Send blank keys and duplicate keys into exceptions before attempting a one-to-one match.
- Compare unique keys, then classify equal amounts, amount differences and records present on only one side. Write source row links and the specific reason into the output.
Power Query exposes conversion errors. An unreadable amount must remain a failed input, not a matching zero.
Use a synthetic statement and ledger pack
All amounts below are USD for supplier SUP-A. Both files use document type Invoice. The statement contains S1/INV10/100, S2/INV11/80, S3/blank/60, S4/INV12/50 and S5/INV13/75. The ledger contains L1/INV10/100, L2/INV11/80, L3/OTHER60/60, L4/INV12/50 and L5/INV12/50.
| Statement item | Expected result | Evidence |
|---|---|---|
| S1 | Exact candidate | L1: same key and amount |
| S2 | Exact candidate | L2: same key and amount |
| S3 | Missing reference | L3 amount alone cannot establish identity |
| S4 | Multiple candidates | L4 and L5 share the key |
| S5 | Statement-only | No matching ledger key |
There are two exact candidates and three statement exceptions. L3 is ledger-only; L4 and L5 belong to the duplicate-key investigation. Do not expand S4 into two “matched” records and accidentally count $100 against a $50 statement item.
Make the exception queue actionable
Give each exception an ID, both available source references, reason, owner, next question and decision state. For S3, request the missing document reference. For S4, inspect the two ledger records and their creation history. For S5, check timing and source coverage before deciding that a ledger entry is missing. These are investigation directions, not conclusions about the books.
Preserve the reviewer’s decision and any authorized correction reference separately from the original comparison. A refreshed export may resolve an exception, but it should not erase the reason it was raised.
Test ambiguity and repeatability
Reorder both files and require the same candidates. Change L1 to $99 and expect an amount exception for S1. Give L3 a different supplier ID and confirm it cannot match S3 even if a reference is later supplied. Repeat an unchanged run and ensure existing exception identities remain traceable rather than generating an unexplained new backlog.
These fictional records define expected outcomes; they are not results from a live supplier connection. ParseMill’s structured CSV comparison can support review within its supported scope. A recurring import and exception-routing connection should be specified through a workflow discussion, with posting and accounting decisions left to the authorized team.
Assisted setup with ParseMill
Design a useful matching and review step
Identify the two records, the matching fields and the differences a person must decide. We can assess the preparation and exception workflow; accounting judgments stay with your team.
Discuss this deploymentDescribe your tools, the repeated task, its frequency and the result you need. We agree the scope and any fee before starting. Third-party connections need their own fit assessment; sending a request does not activate an integration.
For supplier invoice PDFs, try the invoice-to-Excel example to see ParseMill’s extraction, source review and workbook export.
Sources and editorial notes
- Microsoft: Merge queriesChecked 2026-11-09
- Microsoft: Power Query errorsChecked 2026-11-09
Written by ParseMill. Worked examples are illustrative process examples, not customer results. Software availability can vary by subscription and region; check the linked documentation for your account. Review decisions and approvals remain with your team.