Append Queries in Power Query Editor

We can combine two or more queries in Power Query Editors. The append queries is basically appending the rows from one table below another (i.e., vertical stacking).

Access Path:

Options:

Note:

The append operation requires at least two tables. The Append dialog box has two modes:

Note: The tables will be appended in the order in which they're selected.

Step 1: Create First Dummy Table

Power Query M

let
    Table1 = Table.FromRecords({
        [ID = 1, Name = "Alice", Sales = 100],
        [ID = 2, Name = "Bob", Sales = 200]
    })
in
    Table1       

The output of the above code is a table named Table1 with two records: Alice (Sales = 100) and Bob (Sales = 200).

Append Queries in Power Query Editor

Step 2: Create Second Dummy Table

Power Query M

let
    Table2 = Table.FromRecords({
        [ID = 3, Name = "Charlie", Sales = 150],
        [ID = 4, Name = "David", Sales = 250]
    })
in
    Table2  

The output of the above code is shown below:

Append Queries in Power Query Editor

Step 3: Select any table and then click on “Append Queries as New”.

Append Queries in Power Query Editor

In the Append dialog box. Select the tables and then click on Ok.

Append Queries in Power Query Editor

In the below image we can see that a new query is created.

Append Queries in Power Query Editor

The M function which is behind the UI's "Append Queries" is Table.Combine.

Syntax Table.Combine({Table1, Table2})

Table.Combine is used to append multiple tables with matching column names.

Appending Tables with Different Columns (Schema Mismatch)

If tables have different columns, Table.Combine fills missing columns with null.

Power Query M

let
    Table1 = Table.FromRecords({
        [ID = 1, Name = "Alice", Sales = 100],
        [ID = 2, Name = "Bob", Sales = 200]
    }),
    Table2 = Table.FromRecords({
        [ID = 3, Name = "Charlie", Region = "North"],
        [ID = 4, Name = "David", Region = "South"]
    }),
    Combined = Table.Combine({Table1, Table2})
in
    Combined   

The output of the above code is a table named Combined that merges the rows from Table1 and Table2. Missing columns will have null values.

Append Queries in Power Query Editor

Columns Sales and Region will be null where not applicable.