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

Need help appending new rows to existing rows when refreshing with a date component

I would like Power BI to perform a daily refresh of an Excel file. However, during the refresh process, I want it to avoid updating the existing values in the file and instead add new rows from the Excel file to the existing rows. Additionally, I would like the appended values to include the date on which they were added to Power BI. Is this achievable?

The Excel file in question serves as the outstanding purchase orders file and operates on a rolling basis. This means it contains orders that are yet to be fulfilled. When an order that was placed arrives, the corresponding entry is deleted. My goal is to use this file to track day-to-day changes in outstanding incoming orders.

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Maybe the incremental refresh helps you. Please refer to

Incremental refresh for datasets and real-time data in Power BI - Power BI | Microsoft Learn

When performing an incremental refresh, the historical period is not refreshed, only the refresh period set in advance.

 

Best Regards,

Stephen Tao

 

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 Stepher, 
I donn't think incremental refresh would work for my case because I do not have a date component or anything that I use to filter. For example, it would be like connecting to a folder that saves a copy of the dataset on a daily basis but with a single file. I want Power BI to take a snapshot of the data every day at one particular date and add the data to a master table with the date it was snapshotted. Lets say the data on Day 1 has 15 lines and data on Day 2 has 17 lines. The Master table would have the data from day 1 and day 2 with a total of 32 lines with a differentiator which would be the date of the snapshot. 

 

rubayatyasmin
Super User
Super User

here is another idea, though this could be a workaround. 

 

- Duplicate your base query.

- then in the duplicated query remove the steps that modify existing data or any operation that you want to avoid during the refresh. 

- Create a new query that loads data from your Excel file.

- Remove the rows with orders that have been fulfilled or any unwanted data.

- Add a custom column that contains the current date using the formula DateTime.Localnow().

- Then in the duplicated query append the newly created query. 

 

- then in power BI service schedule a daily refresh in the dataset

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Anonymous
Not applicable

I am not sure if this would work because it would mean I would have to remove/add rows with completed/new orders every day. 

 

rubayatyasmin
Super User
Super User

Hi, @Anonymous 

 

You need to save your data in a database. Use ssms or any database at your disposal to achieve this goal. 

 

Did I help? If yes, hit 👍 and accept my solution as answer. 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Anonymous
Not applicable

Is there a way to do this without importing the data to an SQL server? 

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.