Merge, Append, Replace & Split Columns – Step-by-Step with Examples
Introduction:
Power BI is a powerful tool for analyzing and visualizing data. But before we create reports, we need to prepare and clean the data using Power BI's Power Query Editor.
This article covers 4 essential transformation tools for beginners:
-
Merge Queries – Combine columns from different tables
-
Append Queries – Stack data from different tables
-
Replace Values – Clean or correct values
-
Split Columns – Break one column into multiple parts
Why You Need Data Transformation in Power BI:
Reason |
Explanation |
---|---|
To combine data |
You may have employee data in one table and salary data in another |
To clean mistakes |
Some columns may have spelling mistakes or inconsistent terms |
To break values |
Full names may need to be split into first and last name |
To prepare for analysis |
Clean data helps you build better visuals and dashboards |
Power BI Tools You Will Use:
Tool | Menu Location |
---|---|
Merge Queries | Home → Merge Queries |
Append Queries | Home → Append Queries |
Replace Values | Right-click on column → Replace |
Split Columns | Transform → Split Column |
Sample Dataset for Practical
You need to prepare 3 Excel sheets and import them into Power BI:
Download Datasets for Practice
3. NewEmployees
Step-by-Step Practical Tutorials in Power BI
1. Merge Queries (Join Two Tables)
Goal:
Combine EmployeeDetails
and EmployeeSalary
using the EmpID column.
Steps:
-
Load both Excel tables into Power BI.
-
Click Home → Transform Data.
-
In Power Query Editor, click Home → Merge Queries → Merge Queries as New.
-
Select:
-
First table:
EmployeeDetails
-
Second table:
EmployeeSalary
-
-
Select
EmpID
column in both. -
Join Kind: Inner Join.
-
Click OK.
-
Click on the new column header → Click Expand Icon (⏷).
-
Select
BasicSalary
andBonus
→ Click OK. -
Rename columns if needed.
Now your table has employee name, department, location, and salary.
2. Append Queries (Combine Rows)
Goal:
Combine EmployeeDetails
and NewEmployees
.
Steps:
-
In Power Query Editor → Click Home → Append Queries → Append Queries as New.
-
Select:
-
Primary table:
EmployeeDetails
-
Second table:
NewEmployees
-
-
Click OK.
✅ A new table is created with 20 rows (all employees).
3. Replace Values
Goal:
Change HR
to Human Resources
for clarity.
Steps:
-
In your combined employee table → Select
Department
column. -
Right-click on column → Click Replace Values.
-
In dialog:
-
Value to Find: HR
-
Replace With: Human Resources
-
-
Click OK.
✅ Now “HR” is changed across the column.
4. Split Column
Goal:
Split the Name
column into First Name and Last Name.
Steps:
-
Select
Name
column. -
Go to Transform → Split Column → By Delimiter.
-
Choose delimiter: Space.
-
Click OK.
-
Rename the new columns:
First Name
,Last Name
.
✅ Name is now in two separate columns.
Power BI Data Transformation – Cheat Sheet (In Sentences)
🔸 Merge Queries :
Use the Merge Queries tool from the Home menu to combine columns from two different tables based on a common column, such as EmpID. This helps bring related data (like salary and department) into a single table.
1 टिप्पण्या
Hero Vired is an education venture from the Hero Group that delivers future-ready programs in data science, AI, finance, entrepreneurship, and more. With live classes, industry projects, and expert mentors, it bridges the gap between academics and real-world careers.
उत्तर द्याहटवाकृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏