SlideShare a Scribd company logo
3
Most read
7
Most read
12
Most read
SQL Tips
and Timesavers
Combine data with
APPEND in Power Query
You may need to combine or consolidate data from
multiple sources, which may not be possible to do
before it is loaded into Power Query
Here is a simplified example combining sales data
from two different sources using the APPEND
function
Assuming we have two
different sales data sources
We want to combine Sales A
with the data in Sales B
(Notice that Store ID 5 appears
in both)
Sales A Sales B
We already have two similar
tables from two different
sources already loaded into
Power BI
Go to the table view in Power
BI desktop and select the first
table Right click 'Edit query' option
on the data pane for the first
table
The interface now opens up a Power Query
editor window and we can see the data in the
first table
On the Home tab, under
the Append Queries
button, select the drop
down and choose
'Append Queries as New'
Combine the tables using the APPEND QUERIES option
Now select the two
tables in the Append
dialogue box that pops
up
Here is the new table after the data
is appended
From here you can rename the
table, apply any other
transformations you may need and
use it as you would any other table
To demonstrate this, go back to
Sales A and add a column
We added a custom column called
Source and populated it with
"SalesA"
if we now look back at the
Appended table, the extra column is
automatically added, and the SalesB
data is shown as NULL values in this
new column
If the columns are not identical what happens?
Go into SalesB and add a
custom column called
‘Company’ and populate
it with "SalesB"
What happens if the columns have different names?
Now, if we look back at the
appended table, another
new column is added, with
NULL values in the
"SalesA"data
You can see that if column names don’t exactly match then the append will treat them as separate columns
To correct it go back into the one of the source tables and change the field name to match
You may actually need to remove duplicates
To do this, select all of the columns you want
to be included in your duplicate checking.
Note that we have only selected the first three
columns, as the Source Column would have
two different values for Store ID 5
Then select 'Remove Rows' on the Home
Ribbon, and select Remove Duplicates from
the drop-down options
How to remove duplicates in append queries?
The key things to remember when appending data in Power Query is to
make sure that the field names and data types are the same before
running the append
It does not matter if the columns are in a different order as the final
column order is derived from the first table
You can append more than two tables, which is a very similar process
For more Tips, Tricks and
Timesavers, visit our website
Business Analytics Blog – Select Distinct
Credit: simon.harrison@selectdistinct.co.uk

More Related Content

What's hot (15)

PPTX
DAX and Power BI Training - 001 Overview
Will Harvey
 
PDF
Using Microsoft Excel for Weibull Analysis by William Dorner
Melvin Carter
 
PPTX
Power bi
jainema23
 
DOCX
La función buscarh en excel
Irlanda Cortinas
 
PPT
Introduction to Power BI
Sagar Kewalramani
 
PPTX
Advanced Filter in Excel
dinesh takyar
 
PPTX
Power BI Overview
Gal Vekselman
 
PPT
Excel SUMIFS Function
Excel
 
PPTX
Lec 04 - Logical Design (Relational Mapping).pptx
HasankaWijesinghe1
 
PPTX
Shape Your Data into a Data Model with M
CCG
 
PPTX
Introduction to Microsoft Power BI
Exilesoft
 
PPTX
Data Validation
Sushmita Ghosh
 
PDF
Sql Basics | Edureka
Edureka!
 
DOCX
Assignment on Beximco 2nd part
Al Shahriar
 
PPTX
Power business intelligence
aasthabadoniya1
 
DAX and Power BI Training - 001 Overview
Will Harvey
 
Using Microsoft Excel for Weibull Analysis by William Dorner
Melvin Carter
 
Power bi
jainema23
 
La función buscarh en excel
Irlanda Cortinas
 
Introduction to Power BI
Sagar Kewalramani
 
Advanced Filter in Excel
dinesh takyar
 
Power BI Overview
Gal Vekselman
 
Excel SUMIFS Function
Excel
 
Lec 04 - Logical Design (Relational Mapping).pptx
HasankaWijesinghe1
 
Shape Your Data into a Data Model with M
CCG
 
Introduction to Microsoft Power BI
Exilesoft
 
Data Validation
Sushmita Ghosh
 
Sql Basics | Edureka
Edureka!
 
Assignment on Beximco 2nd part
Al Shahriar
 
Power business intelligence
aasthabadoniya1
 

Similar to APPEND data in Power Query (20)

PPTX
A "M"ind Bending Experience. Power Query for Power BI and Beyond.
Alex Powers
 
PPTX
How to use Power Query in Excel.pptx
Select Distinct Limited
 
PPTX
004.action query
Học Huỳnh Bá
 
PPTX
Power Query editor.pptx dfrdgzdfgzfdgdfgfdgf
sanikaayare79
 
PPTX
OracleSQLraining.pptx
Rajendra Jain
 
PDF
Illustrated Microsoft Office 365 and Access 2016 Intermediate 1st Edition Fri...
skolemtundag
 
PPTX
ADVANCE ITT BY PRASAD
PADYALAMAITHILINATHA
 
PDF
MS Access 2010 tutorial 5
Khalfan Alshuaili
 
PPS
04 qmds2005 session05
Niit Care
 
PPTX
Relational Algebra in DBMS power ppoint pesenetation
AshokRachapalli1
 
PDF
Power BI Tutorial for analysis optimasi network
muhazkaalfatihwildha
 
PPTX
UNION in DAX
Select Distinct Limited
 
PDF
SQL Notes
mitmak
 
DOCX
Shelly cashman microsoft access 2016 module 2 querying a dat
mayank272369
 
PDF
122 sql for-beginners
suzzanj1990
 
PPT
Ms sql server ii
Iblesoft
 
PPTX
Chapter 4 microsoft access 2010
home
 
PDF
Access 03
Alexander Babich
 
PPTX
PowerBI importance of power bi in data analytics field
shubham299785
 
PPTX
New Perspectives: Access.03
Anna Stirling
 
A "M"ind Bending Experience. Power Query for Power BI and Beyond.
Alex Powers
 
How to use Power Query in Excel.pptx
Select Distinct Limited
 
004.action query
Học Huỳnh Bá
 
Power Query editor.pptx dfrdgzdfgzfdgdfgfdgf
sanikaayare79
 
OracleSQLraining.pptx
Rajendra Jain
 
Illustrated Microsoft Office 365 and Access 2016 Intermediate 1st Edition Fri...
skolemtundag
 
ADVANCE ITT BY PRASAD
PADYALAMAITHILINATHA
 
MS Access 2010 tutorial 5
Khalfan Alshuaili
 
04 qmds2005 session05
Niit Care
 
Relational Algebra in DBMS power ppoint pesenetation
AshokRachapalli1
 
Power BI Tutorial for analysis optimasi network
muhazkaalfatihwildha
 
SQL Notes
mitmak
 
Shelly cashman microsoft access 2016 module 2 querying a dat
mayank272369
 
122 sql for-beginners
suzzanj1990
 
Ms sql server ii
Iblesoft
 
Chapter 4 microsoft access 2010
home
 
Access 03
Alexander Babich
 
PowerBI importance of power bi in data analytics field
shubham299785
 
New Perspectives: Access.03
Anna Stirling
 
Ad

More from Select Distinct Limited (20)

PPTX
Implicit and Explicit Measures in Power BI.pptx
Select Distinct Limited
 
PPTX
What is Microsoft Fabric - a guide by Select Distinct
Select Distinct Limited
 
PPTX
Euro 2024 Predictions - Quarter Final Results.pptx
Select Distinct Limited
 
PPTX
Euro 2024 Predictions - Round of 16 Results.pptx
Select Distinct Limited
 
PPTX
Euro 2024 Predictions - Group Stage Results.pptx
Select Distinct Limited
 
PPTX
Euro 2024 Predictions - Group Stage Outcomes
Select Distinct Limited
 
PPTX
Year on Year Comparison in Power BI.pptx
Select Distinct Limited
 
PPTX
Sync Slicers in Power BI a step by step guide
Select Distinct Limited
 
PPTX
Using Google Search Console Data in Power BI.pptx
Select Distinct Limited
 
PPTX
Data Lake v Data Warehouse. What is the difference?
Select Distinct Limited
 
PPTX
How to Create Drop Down Lists in Excel, step by step
Select Distinct Limited
 
PPTX
Top 5 SQL Tips and Timesaver 2023, our most popular posts
Select Distinct Limited
 
PPTX
Top 5 Power BI tips 2023 most popular blog posts
Select Distinct Limited
 
PPTX
CTEs in SQL.pptx
Select Distinct Limited
 
PPTX
Calculated Columns and Measures in Power BI.pptx
Select Distinct Limited
 
PPTX
Divide by Zero Errors
Select Distinct Limited
 
PPTX
When to transform data for Power BI.pptx
Select Distinct Limited
 
PPTX
Power BI KPIs
Select Distinct Limited
 
PPTX
Direction of travel on a map in Power BI.pptx
Select Distinct Limited
 
PPTX
Power BI Connect to Google BigQuery.pptx
Select Distinct Limited
 
Implicit and Explicit Measures in Power BI.pptx
Select Distinct Limited
 
What is Microsoft Fabric - a guide by Select Distinct
Select Distinct Limited
 
Euro 2024 Predictions - Quarter Final Results.pptx
Select Distinct Limited
 
Euro 2024 Predictions - Round of 16 Results.pptx
Select Distinct Limited
 
Euro 2024 Predictions - Group Stage Results.pptx
Select Distinct Limited
 
Euro 2024 Predictions - Group Stage Outcomes
Select Distinct Limited
 
Year on Year Comparison in Power BI.pptx
Select Distinct Limited
 
Sync Slicers in Power BI a step by step guide
Select Distinct Limited
 
Using Google Search Console Data in Power BI.pptx
Select Distinct Limited
 
Data Lake v Data Warehouse. What is the difference?
Select Distinct Limited
 
How to Create Drop Down Lists in Excel, step by step
Select Distinct Limited
 
Top 5 SQL Tips and Timesaver 2023, our most popular posts
Select Distinct Limited
 
Top 5 Power BI tips 2023 most popular blog posts
Select Distinct Limited
 
CTEs in SQL.pptx
Select Distinct Limited
 
Calculated Columns and Measures in Power BI.pptx
Select Distinct Limited
 
Divide by Zero Errors
Select Distinct Limited
 
When to transform data for Power BI.pptx
Select Distinct Limited
 
Direction of travel on a map in Power BI.pptx
Select Distinct Limited
 
Power BI Connect to Google BigQuery.pptx
Select Distinct Limited
 
Ad

Recently uploaded (20)

PPTX
Module-5-Measures-of-Central-Tendency-Grouped-Data-1.pptx
lacsonjhoma0407
 
PPTX
Numbers of a nation: how we estimate population statistics | Accessible slides
Office for National Statistics
 
PPTX
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
PPTX
ER_Model_Relationship_in_DBMS_Presentation.pptx
dharaadhvaryu1992
 
PPTX
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
PDF
How to Connect Your On-Premises Site to AWS Using Site-to-Site VPN.pdf
Tamanna
 
PDF
AUDITABILITY & COMPLIANCE OF AI SYSTEMS IN HEALTHCARE
GAHI Youssef
 
PPTX
apidays Helsinki & North 2025 - Running a Successful API Program: Best Practi...
apidays
 
PDF
Early_Diabetes_Detection_using_Machine_L.pdf
maria879693
 
PDF
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
PPT
deep dive data management sharepoint apps.ppt
novaprofk
 
PDF
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
PPTX
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
PDF
JavaScript - Good or Bad? Tips for Google Tag Manager
📊 Markus Baersch
 
PDF
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
PDF
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
PPTX
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
PPTX
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
PDF
Choosing the Right Database for Indexing.pdf
Tamanna
 
PDF
What does good look like - CRAP Brighton 8 July 2025
Jan Kierzyk
 
Module-5-Measures-of-Central-Tendency-Grouped-Data-1.pptx
lacsonjhoma0407
 
Numbers of a nation: how we estimate population statistics | Accessible slides
Office for National Statistics
 
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
ER_Model_Relationship_in_DBMS_Presentation.pptx
dharaadhvaryu1992
 
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
How to Connect Your On-Premises Site to AWS Using Site-to-Site VPN.pdf
Tamanna
 
AUDITABILITY & COMPLIANCE OF AI SYSTEMS IN HEALTHCARE
GAHI Youssef
 
apidays Helsinki & North 2025 - Running a Successful API Program: Best Practi...
apidays
 
Early_Diabetes_Detection_using_Machine_L.pdf
maria879693
 
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
deep dive data management sharepoint apps.ppt
novaprofk
 
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
JavaScript - Good or Bad? Tips for Google Tag Manager
📊 Markus Baersch
 
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
Choosing the Right Database for Indexing.pdf
Tamanna
 
What does good look like - CRAP Brighton 8 July 2025
Jan Kierzyk
 

APPEND data in Power Query

  • 1. SQL Tips and Timesavers Combine data with APPEND in Power Query
  • 2. You may need to combine or consolidate data from multiple sources, which may not be possible to do before it is loaded into Power Query Here is a simplified example combining sales data from two different sources using the APPEND function
  • 3. Assuming we have two different sales data sources We want to combine Sales A with the data in Sales B (Notice that Store ID 5 appears in both) Sales A Sales B
  • 4. We already have two similar tables from two different sources already loaded into Power BI
  • 5. Go to the table view in Power BI desktop and select the first table Right click 'Edit query' option on the data pane for the first table
  • 6. The interface now opens up a Power Query editor window and we can see the data in the first table
  • 7. On the Home tab, under the Append Queries button, select the drop down and choose 'Append Queries as New' Combine the tables using the APPEND QUERIES option Now select the two tables in the Append dialogue box that pops up
  • 8. Here is the new table after the data is appended From here you can rename the table, apply any other transformations you may need and use it as you would any other table
  • 9. To demonstrate this, go back to Sales A and add a column We added a custom column called Source and populated it with "SalesA" if we now look back at the Appended table, the extra column is automatically added, and the SalesB data is shown as NULL values in this new column If the columns are not identical what happens?
  • 10. Go into SalesB and add a custom column called ‘Company’ and populate it with "SalesB" What happens if the columns have different names? Now, if we look back at the appended table, another new column is added, with NULL values in the "SalesA"data You can see that if column names don’t exactly match then the append will treat them as separate columns To correct it go back into the one of the source tables and change the field name to match
  • 11. You may actually need to remove duplicates To do this, select all of the columns you want to be included in your duplicate checking. Note that we have only selected the first three columns, as the Source Column would have two different values for Store ID 5 Then select 'Remove Rows' on the Home Ribbon, and select Remove Duplicates from the drop-down options How to remove duplicates in append queries?
  • 12. The key things to remember when appending data in Power Query is to make sure that the field names and data types are the same before running the append It does not matter if the columns are in a different order as the final column order is derived from the first table You can append more than two tables, which is a very similar process
  • 13. For more Tips, Tricks and Timesavers, visit our website Business Analytics Blog – Select Distinct Credit: [email protected]