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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DmitryKrass
New Member

Wipe certain data before new load

Hello Team,

I have forecasting table in my data model (year-month, material code, qty) which we receive every month. Each time before loading next forecasting file I need clear in the existing forecasting table all months from current.

 

For example, earlier in the year we received Jan.forecast.xlsx (file_1) which contained 12 months from Jan to Dec 2022. Then we receive Feb.forecast.xlsx (file_2) which has 11 months from Feb to Dec 2022. We need to keep Jan data from the file_1, wipe out all other data in the existing table and put file_2 in it. How do I do it in the PowerQuery?  

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Create Incremental refresh with monthly partitions. Disable automatic refresh.  Swap your data source but keep its name. Manually refresh the partitions you are interested in (via API call).

 

Note:  This will not survive a rogue full dataset refresh. Power BI has no memory, and no concept of global variables. You may need to do all that in the upstream system instead.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Create Incremental refresh with monthly partitions. Disable automatic refresh.  Swap your data source but keep its name. Manually refresh the partitions you are interested in (via API call).

 

Note:  This will not survive a rogue full dataset refresh. Power BI has no memory, and no concept of global variables. You may need to do all that in the upstream system instead.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors
Top Kudoed Authors