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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
xli629b
Helper II
Helper II

Incremental refresh support for a non-folding data source

A warning message in Power BI Desktop says "It is not recommended to use incremental refresh with non-foldable queries."


However, incremental refresh for a non-folding data source actually does seem to work. I'm wondering what the actual limitations are then for non-folding data sources?

For example, if I have a data source that accepts start/end dates in the query string, and I simply directly substitute in those start/end parameters into the string:

 

data = MyDataSource("[...], dates=range(" & RangeStart & "," & RangeEnd & ")")

 

I can get it to only query for the past month upon subsequent refreshes after querying for six months of historical data the first time.

Even if I add some kind of simple transformation afterwards such as SelectRows, it still doesn't seem to break incremental refresh.

Cases like this seem to suit our needs just fine.

The documentation warns:
If it’s a pure import mode policy without real-time data, the query mashup engine might compensate and apply the filter locally, which requires retrieving all rows for the table from the data source. 

But would this pitfall only apply if I try to apply SelectRows(..., each [start_data] >= RangeStart and [end_date] < RangeEnd) to do the date range filtering instead of the direct string substitution above? Or are there other things that can go wrong with non-folding data sources with incremental refresh?
1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

What you are doing is fine. By putting RangeStart and RangeEnd in the query, you are manually "folding".

 

Pat

Microsoft Employee

View solution in original post

1 REPLY 1
ppm1
Solution Sage
Solution Sage

What you are doing is fine. By putting RangeStart and RangeEnd in the query, you are manually "folding".

 

Pat

Microsoft Employee

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.