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
tonyenglish
New Member

Replacing Some data

This might be a stupid question but I can't work out how to crack it. 

 

We have a fairly clunky process for a timesheet Application.  We can only get to raw data using exported CSV files.  While I can import these quite easily, the problem I have is that the people authorising them can be a little slack in terms of hitting the deadline.  The plan is each month we will import all the data from the previous 3 months, to catch up late approvals.  Is there any way to have a portion of the existing data deleted based on its date and then bulk load the new data.  In the current VBA version, I have the macro delete all records relating to the past 3 months prior to importing the refreshed and new stuff. 

 

I know that I could get it to drop all the data and reimport the lot but going forward that will cause it to have to reimport a load of data which won't have changed

 

Thanks in advance

3 ACCEPTED SOLUTIONS
MarkLaf
Super User
Super User
ArwaAldoud
Super User
Super User

You can remove old data and load the latest records using Power Query in Power BI. You need to:
1. Load existing data
2. Filter out records from the last 3 months
3. Append new data from the CSV

You can also use Incremental Refresh to automate this process.

https://learn.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview

 

Let me know if you need further guidance

 

If this response was helpful, please accept it as a solution and give kudos to support other community members

View solution in original post

Akash_Varuna
Super User
Super User

Hi @tonyenglish , There are several ways to achive this through Power Query as well as incrimnetal refresh please try these out 
Incremental Refresh:

  • Set up incremental refresh in Power BI for your dataset.
  • Configure it to delete and reload data for the past three months during each refresh.

Filter Old Data:

  • In Power Query, filter records older than three months.
  • Append the new data to existing data.

If your source is Database then you could use SQL to filter it in the source itself
If this post helped please do give a kudos and accept this as a solution
Thanks In Advance

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @tonyenglish,

I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.

Please continue using Microsoft community forum.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @tonyenglish,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, kindly "Accept  as  Solution" and give it a 'Kudos' so others can find it easily.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @tonyenglish,

Thank you for reaching out in Microsoft Community Forum.

Thank you @Akash_Varuna@ArwaAldoud@MarkLaf  for the helpful responses.

As suggested by Akash_Varuna, ArwaAdoudOmer, MarKLaf,  I hope this information was helpful. Please let me know if you have any further questions or you'd like to discuss this further. If this answers your question, please "Accept as Solution" and give it a 'Kudos' so others can find it easily.

Please continue using Microsoft community forum.

Regards,
Pavan.

Akash_Varuna
Super User
Super User

Hi @tonyenglish , There are several ways to achive this through Power Query as well as incrimnetal refresh please try these out 
Incremental Refresh:

  • Set up incremental refresh in Power BI for your dataset.
  • Configure it to delete and reload data for the past three months during each refresh.

Filter Old Data:

  • In Power Query, filter records older than three months.
  • Append the new data to existing data.

If your source is Database then you could use SQL to filter it in the source itself
If this post helped please do give a kudos and accept this as a solution
Thanks In Advance

ArwaAldoud
Super User
Super User

You can remove old data and load the latest records using Power Query in Power BI. You need to:
1. Load existing data
2. Filter out records from the last 3 months
3. Append new data from the CSV

You can also use Incremental Refresh to automate this process.

https://learn.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview

 

Let me know if you need further guidance

 

If this response was helpful, please accept it as a solution and give kudos to support other community members

MarkLaf
Super User
Super User

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.

Top Solution Authors