Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
dd88
Post Patron
Post Patron

Data clean up and merge duplicate data

PowerBi desktop app.

 

I have employee data from 2 different systems.  System 1 has EmployeeID and System 2 has Payroll EmployeeID.  However the Employee IDs are different in both systems, setup in separate legacy systems.

 

The goal is gap analysis, and a data cleanup to match and connect the data between the different systems.  Usually a unique employeeID would be the ‘key’ used across both systems.  However at this stage, with this dataset I am not sure what the key will be.

 

In PowerBI, an excel speadsheet is the data source, tab 1 contains System 1 data and tab 2 contains system 2 data.

 

I have Append the tables, and  an example of the result data is

 

PowerBI-table01.jpg

 

I read about Remove Duplicate Values

 

https://learn.microsoft.com/en-us/power-query/working-with-duplicates

 

I dont think I want to remove duplicate values Full name, as then System 2 EmployeeID data will be deleted.

 

I think what I want to achieve is to merge the data, and then remove duplicates,  and the resulting data example is

 

PowerBI-table02.jpg

 

How can I achieve this? And what is the best way to achieve this

 

TIA

 

 

 

1 ACCEPTED SOLUTION

@ddpl  I found the solution here 

 

Fill up/ down with conditions in Power Query
https://www.youtube.com/watch?v=QV98Jndj5Fo

 

Thanks again

View solution in original post

3 REPLIES 3
ddpl
Solution Sage
Solution Sage

@dd88  try this

 

1.Append the both the table.

2.Asscending the the column first name or any one

3.Then select the column system1 empl id column and Fill down the data

4.Now select system2 payroll empl id column and Fill up the data

5.Finally remove duplicate.

Thanks @ddpl   thats a neat feature.

 

After I performed the Fill, I verified the data.

 

What has occurred, is the data does not align and match correctly with the name record.

 

For an employee, there maybe no data (blank) at all for system 1 or system 2.

 

The fill results are:

for example, system 2 the 1st record is null, and has filled the data incorrectly. System 1 the last record, the next employee does not have data, the result it has filled with the previous employee data.

 

PowerBI-FillResults.jpg

 

any ideas?

TIA

 

@ddpl  I found the solution here 

 

Fill up/ down with conditions in Power Query
https://www.youtube.com/watch?v=QV98Jndj5Fo

 

Thanks again

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.