Appending two queries in Power Query stacks the rows of the second under the rows of the first, matching columns by name. When the two queries have different column names, or one has a column the other lacks, the result has nulls where the missing values should be, and a column can split into two. An AI-built append needs its column lists compared before the load. Check the names, not just the row counts.
What you need
- The two queries being appended, with their column lists
- The appended result, loaded to a sheet
- The row count each query should contribute
Step 1: List the columns of both queries side by side
Open each query in the Power Query Editor and write down its column names in order. A column called Amount in one and Total in the other will not match.
Step 2: Check the appended result for nulls
Load the append and filter each column for null values. A block of nulls in one half of the result marks a column that only one query had.
Step 3: Rename the columns to match and re-append
Rename the mismatched columns so both queries use the same names, then refresh the append. The nulls should disappear and the row count should equal the sum of both queries.
Worked example: synthetic quarterly sales queries
The table below is a synthetic example. It shows the expected result of checking a Power Query append; no formula was run.
| Check | Value | Result |
|---|---|---|
| Query 1 columns | Region, Amount | Q1 sales |
| Query 2 columns | Region, Total | Q2 sales |
| Appended rows | 20 | Ten from each query |
| Nulls in the result | 10 | Total column has no match |
Expected result (UNTESTED). appending Q1 with an Amount column to Q2 with a Total column gives 20 rows but ten nulls, because the columns do not match by name; renaming Total to Amount removes the nulls. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Append matches columns by name, not by position, so two columns in different orders still line up.
- A column that exists in only one query is filled with null in the other query’s rows.
- Appending queries with different data types in the same column can change the column’s type on refresh.
- An append creates a new query, so the two source queries stay unchanged and can be reused.
