
Power Query Merge vs Append: Check Rows Before Trusting Totals
Use Append in Power Query to stack comparable records; use Merge to match records using selected keys. Before approving a combined table, check what each row represents, how many rows survived and whether business totals still reconcile. This guide focuses on that preparation check, rather than on dashboard design or KPI definitions.
The distinction matters when a small lookup table unexpectedly multiplies sales rows. The result may load successfully and still answer the wrong question. The worksheet and example below are original teaching aids, not a Microsoft template or HPA client results.
Merge or Append: choose the operation from the question
| Business question | Operation to investigate | Acceptance evidence |
|---|---|---|
| Combine comparable monthly transaction files | Append | Input coverage, consistent field meanings and reconciled row counts |
| Add a region label to each transaction | Merge | Approved key, match counts and a checked expanded result |
| Find records missing a reference match | A documented exception query | An explicit list for the data owner, rather than silent deletion |
Microsoft’s Append documentation states that columns align by header name, not position; missing columns produce nulls. Its Merge overview describes matching selected columns and then expanding or aggregating the nested result. Check key types and multi-column selection order before applying the operation.
Write the expected result before combining files
Record the unit of observation in one sentence: for example, one row per order line. A customer ID can repeat across order lines without being a duplicate transaction. By contrast, a lookup intended to provide one current region per customer needs an approved rule for customers with several valid records.
Keep the original queries available, name the combination step and identify the input versions. Ask whether two monthly extracts overlap or include restated transactions. Appending them cannot, on its own, decide which version is authoritative.
Hypothetical example: three order lines become five rows
All identifiers and amounts in this example are invented for learning; they are not HPA or customer data. Amounts are in the same fictional reporting currency. The left table contains exactly these three order lines, and the intended output is still one row per order line.
| Order line | Customer key | Amount |
|---|---|---|
| DEMO-01 | A | 100 |
| DEMO-02 | B | 200 |
| DEMO-03 | B | 50 |
The reference table contains A → North, B → East and B → West. The business has not approved two regions for one transaction. A left outer merge on the customer key finds one reference row for A and two for each B order line.
| Stage | Rows | Sum of original amount column | Interpretation |
|---|---|---|---|
| Before merge | 3 | 350 | Starting control total |
| Nested merge result, before expansion | 3 | 350 | Inspect the matched tables; the repeated matches are still nested |
| After expanding all matching region rows | 5 | 600 | A contributes 100; both B amounts appear twice |
| After an approved unique lookup rule and a new merge | 3 | 350 | Only valid if the owner has resolved which region applies |
The arithmetic is 100 + 200 + 200 + 50 + 50 = 600. The extra 250 is repeated source value, not additional sales. Keeping all left rows does not mean that expansion can never increase the row count. This is the expected consequence of the example’s repeated matches, not evidence that Power Query has miscalculated.
Microsoft’s left outer join example shows that unmatched left records are retained with null reference values. In your own test, include an unmatched key too. A null needs investigation; it does not automatically mean zero sales or permission to discard the record.
Use a reconciliation log, not only a success message
| Check | Record | If it fails |
|---|---|---|
| Source coverage | Files, cutoff, period and input row counts | Resolve missing or overlapping extracts with the owner |
| Lookup uniqueness | Keys with zero, one or multiple matches | Confirm the correct business key or effective-date rule |
| Expansion | Row count and control total before and after | Inspect which source identifiers were repeated |
| Append structure | Expected headers, units and null fields | Align meanings and types; do not rename unrelated fields into a false match |
| Approval | Reviewer, unresolved items and output version | Keep the output unapproved until material differences are explained |
In a simple append of 3 rows and 2 rows, with no other transformation steps, expect 5 rows. That count alone does not establish five distinct business events. If one event was extracted twice, keep the overlap visible and obtain a rule before deduplicating. Do not use Remove Duplicates merely to force a desired total.
For a merge, investigate whether repeated lookup records are errors, different periods or a legitimate one-to-many relationship. If the detail is needed, choose an output grain and aggregation rule that preserves its meaning. Picking an arbitrary first match can hide a valid distinction.
Questions to settle before sharing the result
Does a successful refresh prove the totals are correct?
No. Validate the business meaning and the combined output separately. Retain a small approved sample that someone else can recalculate, plus the reconciliation log and any limitations.
Should every merge preserve the left table’s row count?
No. State the intended result and join type. This example expects one enrichment per order line; other tasks intentionally create more detail or retain different record sets. The acceptance rule must fit the task.
What should a team practise first?
Choose a small, anonymised combination task. Ask participants to explain the expected grain, identify repeated and unmatched keys, reconcile a control total and document an unresolved case. A correct-looking chart is not the acceptance test.
Connect the exercise to the learning need
For the reporting context, read the KPI definition sheet and HPA’s business analytics guide. The published Data Analysis Course covers preparation, cleaning, Excel and Power BI. Confirm the current outline and starting requirements with HPA; this exercise does not promise a particular lesson or certification.
For a team enquiry, use HPA corporate training and describe the participants, their current tools and the table-combination problem they need to handle. Share field names and anonymised examples rather than confidential source files.
Sources and limits
Primary documentation checked on 25 November 2026: Append queries, Merge queries overview and Left outer join. The reconciliation log and numerical example are original proposals. They do not establish results for a production dataset.


