Append queries in Power Query

A new file every month, a separate export from every branch: appending stacks such tables on top of each other so the report calculates across all of them. Here you learn what matters when doing it.

In short: Append Queries adds the rows of a second query at the bottom. Columns are matched by their names, not their order. Anything that exists in only one table becomes null in the other rows.

Prerequisites: Merge queries.

Try it now

Task Every month comes as a file of its own. Append the February query below January so that all sales are in one table.

ABCDEFG
1 Date Region Sales Date Region Sales
2 2 Jan 2026 North 1798 3 Feb 2026 East 229
3 15 Jan 2026 South 596 17 Feb 2026 North 3596
4 28 Jan 2026 West 1145

Append or merge?

AppendMerge
Directionrows on top of each othercolumns side by side
Typical caseJanuary and February, North and West branchesorders and product prices
In Excelcopy ranges below each otherVLOOKUP
In SQLUNION ALLJOIN

Appending does not remove duplicate rows. If the same order is in two files, it appears twice; Remove Duplicates afterwards helps.

One more exercise: different column order, extra column

Task The western branches deliver their file with the columns swapped and an extra Discount column. Append West below North, then remove the Discount column.

ABCDEF
1 Branch Sales Sales Branch Discount
2 Leeds 4200 3900 Bristol 120
3 York 3150 2450 Bath 80
4 Hull 2780

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

In real Power BI

  1. Append: select the first query, Home, Append Queries. For more than two tables choose "Three or more tables".
  2. As a new query: with "Append Queries as New" the monthly queries stay unchanged and the result is a query of its own.
  3. Many files: Get data, Folder, then Combine. Power BI appends every file in the folder, including next months' files as soon as they are in the folder.

Common mistakes

Columns with different names

"Sales" in one file and "Net sales" in the other give two columns full of nulls. Give the columns the same name first.

Header rows in the middle of the data

If a file's headers were not detected, they end up as a row in the middle of the table after appending. Every query needs its own headers and data types first.

Frequently asked questions

Does the column order have to match?

No, Power Query matches by name. Spelling has to match and, so calculations work, the data type.

How do I know later which file a row came from?

Before appending, add a custom column with the month or branch to each query. With the Folder source, Power BI brings the file name along already.

Learn this next: unpivot

Turn wide Excel tables with one column per month into the long shape.

Unpivot

Write to us

Choose language

Select your preferred language