Sub topic 6
Appending Three or More Queries
This chapter assumes you can already append two queries, as covered earlier. It also assumes you know that appended columns are matched by name, not by position. Here you extend that to three or more tables and to a growing set of tables.
Appending three or more queries in the dialog
In the Power Query Editor, choose Home > Append Queries. The dialog has two options:
- Two tables lets you pick one primary table and one second table.
- Three or more tables lets you add any number of tables from the available queries to a list.
Choose Three or more tables, then select each query and click Add. You can reorder the list with the arrows. The order matters: rows from the first table come first in the result, and when column names differ, the first table's columns come first.
The step Power Query creates is a single Table.Combine call over a list of queries:
let
Source = Table.Combine({Sales_2023, Sales_2024, Sales_2025})
in
SourceUse Append Queries as New if you want to keep the originals untouched. Plain Append Queries adds the step to the primary query and changes it.
Why one append beats several
You could append two tables, then append the result with a third. This works, but it leaves a chain of steps that is hard to read. A single Table.Combine with a list is easier to audit and edit. To add a fourth table later, add its name inside the braces.
Common errors with many tables
Each added table is another chance for a layout mismatch. Check these before you load:
- Renamed headers. If one table says
Qtyand the others sayQuantity, you get two columns, each filled withnullwhere the table lacks it. Rename the columns in the source query so every name matches exactly, including case. - Mixed data types. If
Amountis a number in one table and text in another, the combined column can hold errors or mixed values. Set the type in each source query before appending. - Extra columns. A column that exists in only one table still appears in the result. Remove unneeded columns in the source queries first.
- Header rows as data. If one source did not promote its header row, the old headers appear as a data row. Fix this in the source query.
Load settings for the source queries
Set each source query to Connection only unless you also need it as its own sheet. This keeps the workbook small and avoids loading the same rows twice. Only the combined query needs to load to a table or the Data Model.
When the list keeps growing
If you add a new yearly table every year, editing the list by hand gets tedious. If the files live in one folder, the Folder connector can combine them all in one step, and new files are picked up on refresh. That is a separate topic. For a small, known set of tables inside the workbook, Table.Combine with a list is the right tool.
Exercise
You append Sales2023, Sales2024, and Sales_2025. The result has both a Qty column and a Quantity column, each partly null. What caused this, and where should you fix it?
Show answer
Sales2025 uses Qty while the other two use Quantity, so Power Query treats them as different columns. Rename Qty to Quantity in the Sales2025 source query, then refresh the combined query.