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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Guilhermealc
Regular Visitor

Refresh once a month and keep old data

Hello,
I have a financial dataset that updates once a month. It’s on a SQL Server, and I execute a SQL query of all data everytime I refresh my powerbi.
Like
SELECT * FROM FinancialTable Where Date >= ‘2018-01-01’
Is there any way that I dynamically filter the SQL query to get only the data from the last month, but keep all my historical data? I can’t use the ‘incremental load’ because I don’t have PowerBI Premium.

Regards.
3 REPLIES 3
Greg_Deckler
Super User
Super User

Well, you could do this with somewhat of a manual approach. In essense, 3 queries. First query gets everything <= some date. Second one gets everything > the same date. You Append the two queries together. You disable refresh on the first query. Now you have significantly reduced the amount of data that you are refreshing. You can later go in and adjust the dates in the queries and enable refresh on the first query. This will result in a large data load, then you disable the refresh on the query again.

 

It's manual, but it works without Premium.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hello Greg, thank you for the reply. This could be a solution, but my monthly data can’t be changed, so I would have to do this manual approach every month.

I’m thinking to make the monthly load using sql server agent by inserting the data on a new table, but I would like to have a solution just using Power bi.

Hi @Guilhermealc,

Based on my research, you could refer to below blog.

https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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