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
ROCKYDO12
Helper III
Helper III

Duplicate Rows and Refresh

Hello,

 

The way my data source is set up is using shared folders. Within the shared folders there are two seperate folders, the first is the historical data which does not get updated and the second folder is new data/changes to hisaorical data. When the new data gets refreshed weekly it loads in duplicate records for rows that have been changed.

 

1. I am looking for a solution that will remove these duplicate records on an ongoing basis when my data set gets refreshed. The unique idenifier is unique for each amount, there should only be one row with the same unique idenifier and the old one should be exlcuded to avoid duplicates.

2. I am wondering about incremental refresh "Detect data changes". Can I use this feature to allow me to only refresh new and changed data.

 

Here is an example of a dataset more simple to use if needed. Right now the last changed dates are the same even for the duplicate records since I just did a data extract for the CSV files from the system but going forward the last changed dates will differ when the data gets updated in the new data folder (Since the historical data will never change):

 

Unique IdenifierAmountDateLast Changed Date
Test12345002-Jul-2020-Jun-22
Test12345002-Jul-2020-Jun-22
Test8910030-Aug-2120-Jun-22
Test8915030-Aug-2120-Jun-22
3 REPLIES 3
amitchandak
Super User
Super User

@ROCKYDO12 , refer if this can help

https://exceleratorbi.com.au/remove-duplicates-keep-last-record-power-query/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Could really use some help on this thanks!

 

Will this method work on an ongoing basis? Every time new data is loaded will it automatically remove the old and keep new records?

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.