Incremental refresh in Power BI, explained

How incremental refresh works in Power BI, the RangeStart and RangeEnd parameters, the policy that splits a table into partitions, and what needs Premium.

Short answer: incremental refresh splits a large table into partitions by date, and each refresh reloads only the recent ones. You add two date/time parameters named exactly RangeStart and RangeEnd, filter the table with them, and set a policy: keep, say, five years, refresh the last three days. It works on Pro, Premium, Premium per user and Embedded; a real-time DirectQuery partition on top needs Premium, PPU or Embedded.

Without it, every refresh reloads every row since the beginning. With it, a five-year sales table refreshes in the time it takes to load three days.

How does the policy split the table?

  1. Historicalyearly, then quarterly and monthly partitions; loaded once, not refreshed
  2. Refresh periodthe last 3 days, reloaded on every refresh
  3. Real time (optional)rows after the last refresh, read with DirectQuery
A sales table under the policy "keep 5 years, refresh 3 days"

The window moves forward on its own: when a day leaves the refresh period it becomes history, and when history falls outside five years it is dropped from the model.

How do you set it up?

  1. In Power Query, create two parameters of type Date/Time named RangeStart and RangeEnd (the names are case-sensitive).
  2. Filter the table's date column with them, one side inclusive and the other not (the step below).
  3. In the model, right-click the table, choose Incremental refresh, and set how much to archive and how much to refresh.
  4. Publish and run the first refresh in the service; it loads all history once.
Table.SelectRows(Orders, each [OrderDate] >= RangeStart and [OrderDate] < RangeEnd)

>= on one side and < on the other matters: a row exactly on a boundary must belong to one partition, not two.

What do the options mean?

SettingWhat it does
Archive data startinghow much history the model keeps
Incrementally refresh data startinghow much recent data each refresh reloads
Get the latest data in real timea DirectQuery partition after the refresh period, Premium only
Only refresh complete daysskips today until it is over
Detect data changesreloads a recent day only if a last-modified column changed
The policy settings

What goes wrong?

  • The filter does not fold. Then every partition pulls the whole table. Check that the source supports query folding up to the filter step.
  • Republishing from Desktop. Publishing the model again replaces it and its partitions; the first refresh starts over. On Premium, deploy metadata only with tools that use the XMLA endpoint.
  • Changes older than the refresh period. A correction to last month's data is not picked up if only three days refresh. Widen the period, or use Detect data changes.

Where can you check this?

Where do you start?

Load only the rows that changed, with a watermark is the same idea one step earlier, in the pipeline. In Fabric, a Direct Lake model needs no refresh partitions at all.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.