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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Merge tables

Hi,

I'm trying to merge two tables ,assuming Table has duplicate records and I'm deleting the duplicates before merging based on a certain criteria (date descending) ,ie delete record with the older date..but after mergeing the data in the new table has picked the record with the older date instead of the latest date...does it mean that although we delete duplicates in tables before merging...Powerbi still looks into the full table...please provide a solution.

 

Thanks,

Meg

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, I suggest you to add an index column to merge tables.

After you hvae remove the duplicate rows, you could add the index column and merge the two tables like the picture below:

1.PNG

Result:

2.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, I suggest you to add an index column to merge tables.

After you hvae remove the duplicate rows, you could add the index column and merge the two tables like the picture below:

1.PNG

Result:

2.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous

 

Can you help with sample data ?

 

Thanks
Raj

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.