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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
eduardobujak
Regular Visitor

Data Duplication Issue in Daily Power BI Desktop Refresh

Good morning, everyone!

I'm experiencing a problem with my Power BI Desktop file when it performs its daily refresh after being published to the workspace.

My data source is an incremental dataflow that always keeps the most recent record. However, when I refresh my PBIX file, the data is duplicating, retaining both the old and new records. This is causing a 1:1 relationship error between tables.

I have reviewed the dataflow to ensure it is correctly removing duplicates and keeping only the most recent record. Despite this, the issue persists when I refresh in Power BI Desktop.

Attached are images of the problem for better illustration.

Has anyone encountered this issue before or have any suggestions on how to resolve it?

Thank you!

[Attachment: Images of the issue]

Dataflow:
DataflowDataflow

Refresh Error:
Refresh ErrorRefresh Error

Image after removing relationships to illustrate the problem

Image after removing relationships to illustrate the problemImage after removing relationships to illustrate the problem

6 REPLIES 6
Anonymous
Not applicable

Hi @eduardobujak 

 

Thanks for the reply from @lbendlin .

 

@eduardobujak , I found a document with a similar problem to yours, and the solution there is to change the table relationship to many-to-one. I hope it helps you.

Solved: Refresh error: "...contains duplicate value...and ... - Microsoft Fabric Community

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

My data source is an incremental dataflow that always keeps the most recent record. 

That's not how incremental refresh works. It is called "incremental" for a reason, and not "differential". Incremental refresh expects your data to be immutable.  If your data changes then you need to expand the refresh window, and worst case will have to abandon incremental refresh altogether.

The problem is not with the dataflow structure, as it is keeping only the most up-to-date record. The issue is more like a cache problem in the .pbix file, because, as illustrated above, there is no longer a row without a value in the deletedat field in the dataflow. It seems like the pbix file does not remove the data when starting the daily refresh, so the records that were updated conflict with the old information.

Show the entire power query code. Which field is the basis for the range filters?

Here is the complete Power Query code. The base field for the filter is updatedat.

eduardobujak_0-1721674453220.png

 

Updatedat is not  a suitable field. Incremental Refresh needs something immutable like Created Date. Even then you have to refresh historical partitions if the row contents changes.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.