The request

From Shirley Chen, Buyer
Your goal
You are in the Sales_Q2 query. Make its columns match Sales_Q3 (look at both: one column has a different name), append Sales_Q3 under it, then add line_total = quantity × unit_price for every row of the combined table.
- Show exactly
order_idorder_dateproductquantityunit_priceline_totalnot done yet - 30 rowsnot done yet
Your sheet
| order_id | order_date | product | qty | unit_price | |
|---|---|---|---|---|---|
| 1 | 9108 | 2025-04-03 | Fern Concrete Raised Garden Bed | 1 | 662.15 |
| 2 | 9130 | 2025-04-06 | Fern Concrete Raised Garden Bed | 3 | 779 |
| 3 | 9178 | 2025-04-09 | Pacifica Steel Planter | 1 | 289 |
| 4 | 9231 | 2025-04-14 | Linen Aluminum Raised Garden Bed | 1 | 568.65 |
| 5 | 9233 | 2025-04-15 | Fern Concrete Raised Garden Bed | 2 | 779 |
| 6 | 9250 | 2025-04-16 | Linen Aluminum Raised Garden Bed | 1 | 669 |
| 7 | 9385 | 2025-04-29 | Driftwood Acacia Planter | 1 | 219 |
| 8 | 9418 | 2025-05-02 | Pacifica Steel Planter | 1 | 289 |
| 9 | 9622 | 2025-05-20 | Driftwood Acacia Planter | 3 | 219 |
| 10 | 9724 | 2025-05-30 | Linen Aluminum Raised Garden Bed | 4 | 669 |
| 11 | 9749 | 2025-06-01 | Fern Concrete Raised Garden Bed | 1 | 779 |
| 12 | 9771 | 2025-06-02 | Fern Concrete Raised Garden Bed | 1 | 779 |
| 13 | 9786 | 2025-06-04 | Fern Concrete Raised Garden Bed | 1 | 779 |
| 14 | 9823 | 2025-06-07 | Pacifica Steel Planter | 4 | 289 |
| 15 | 9948 | 2025-06-19 | Linen Aluminum Raised Garden Bed | 1 | 669 |
| 16 | 10049 | 2025-06-27 | Linen Aluminum Raised Garden Bed | 2 | 669 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each row of the result that matches becomes a firefly in your lantern.
What Shirley gets, and why
The lesson
Append is copy-and-paste for queries: the rows of one table go under the rows of another. Merge (last level) adds columns from a second table; Append adds rows. You reach for Append when the same report arrives in pieces: one file per month, per quarter, per store.
Append matches by column name
Power Query does not stack the first column on the first column. It matches names. Shirley’s
two files have the same data in the same order, but the old Q2 template calls the quantity qty:
| Sales_Q2 | Sales_Q3 |
|---|---|
| order_id, order_date, product, qty, unit_price | order_id, order_date, product, quantity, unit_price |
Append them as they are and you get six columns: qty filled for the 16 Q2 rows and null for the
14 Q3 rows, and quantity the other way round. No error, no warning; a PivotTable on that table
would count only half the units in each column.
So rename first, in the Q2 query:
Rename column: qty to quantity
Append queries: Sales_Q3
In Excel: double-click the qty header and type quantity. Then Home → Append Queries, choose
Two tables, pick Sales_Q3 as the table to append, OK. Append Queries as New does the same
but leaves both originals alone and builds a third query, which is tidy when several reports use
the quarters separately.
Add the total after the append
Add column: line_total = [quantity] * [unit_price]
Steps run in order, and each one only sees the table above it. A custom column added before the append exists only in the Q2 rows; the Q3 rows arrive without it and show null. Put row-level columns after the append, so one step covers all 30 rows.
Sanity check after appending: 16 + 14 = 30 rows. The totals are 28 units and 15,424.80 for Q2, 24 units and 10,085.65 for Q3: 52 units and 25,510.45 together.
The M behind the steps
#"Renamed Columns" = Table.RenameColumns(Source, {{"qty", "quantity"}}),
#"Appended Query" = Table.Combine({#"Renamed Columns", Sales_Q3}),
#"Added Custom" = Table.AddColumn(#"Appended Query", "line_total", each [quantity] * [unit_price])
Table.Combine takes a list of tables, so appending three quarters is one step:
Table.Combine({Q2, Q3, Q4}). For a folder that gets a new file every month, Data → Get Data →
From File → From Folder appends every file in it automatically, and Refresh picks up new ones.
Common mistakes
- Not comparing headers before appending.
qtyandquantity,Priceandprice, a trailing space in a header: all of them split one column into two. - Adding row-level columns before the append. The appended rows get null.
- Appending files with different meanings. Append trusts the names. If one file’s
amountincludes tax and the other’s doesn’t, the combined column mixes them silently. - Appending the same file twice. The row count doubles. Always compare the total rows with the sum of the parts.
Lantern lit!
Practised: power queryappend queriesrename columncolumn namescustom column
- Solved
- No hints
- First run
