Stop 14 · Security, Performance & GovernanceTopics · 7/9

Incremental Refresh

Part of the Power BI Roadmap

In short

Reloading five years of orders every night just to add yesterday's rows wastes hours. Incremental refresh keeps old data in place and only refreshes the recent slice, making refreshes faster and more reliable.

Incremental refresh only reloads recent data, like the last few days, instead of the whole history, using RangeStart and RangeEnd parameters. It works best when queries fold to the source.

The jaadu sits behind a small shop counter writing on the last open page of a thick ledger, while older bound ledgers stand tied up on a shelf.

Think of it like this

The shopkeeper's ledger

A kirana shopkeeper doesn't rewrite the whole ledger every evening. Old pages are closed and kept. He only updates today's page, and maybe fixes the last few days. Incremental refresh splits your table into pages called partitions and only rewrites the recent ones.

Watch it happen

Policy: keep 5 years, refresh last 10 days

2021
0
2022
1
2023
2
2024
3
2025
4
Nov 2026
5
Last 10 days
6

1/5After the first refresh in the Service, the table is split into partitions by period.

The big ideas

What you need to know

RangeStart and RangeEnd

Create two Date/Time parameters with exactly these names. Power BI fills in their values for each partition.

Filter once, carefully

Filter the date column with >= RangeStart and < RangeEnd, so no row lands in two partitions.

Query folding

The filter should fold back to the source, like a SQL WHERE clause. Without folding, Power BI may read everything anyway.

Runs in the Service

You define the policy in Desktop, but partitions are created on the first refresh after publishing. It works on Pro, PPU and capacity.

How it works

Setting it up

  1. 1

    Create parameters

    In Power Query, add RangeStart and RangeEnd as Date/Time parameters with sample values.

  2. 2

    Filter the table

    Apply the >= and < filter on the date column, and check it folds with View Native Query where available.

  3. 3

    Define the policy

    Right-click the table in Desktop, choose Incremental refresh and set archive and refresh periods.

  4. 4

    Publish and refresh

    The first refresh in the Service loads all history. Later refreshes touch only recent partitions.

See it in code

Walk through the code

text
1// Power Query (M) step on the Sales query2= Table.SelectRows(3    Source,4    each [OrderDate] >= RangeStart and [OrderDate] < RangeEnd5)6 7// Incremental refresh policy (Desktop, Sales table)8Archive data starting   5 Years before refresh date9Incrementally refresh   10 Days before refresh date10Only refresh complete days    On11Detect data changes           Off

1/3The filter uses >= on one end and < on the other, so boundaries never overlap.

The M filter and the policy settings. RangeStart and RangeEnd must be Date/Time parameters with those exact names.

Save yourself the pain

Common mistakes

Oops

Using <= on both RangeStart and RangeEnd.

Do this instead

Use >= RangeStart and < RangeEnd. Otherwise rows on the boundary get loaded twice.

Oops

Making the parameters Date type instead of Date/Time.

Do this instead

They must be Date/Time. If your column is a date key like 20261124, convert the parameters inside the filter step.

Your mission

Partition a sales table

~35 min

Quick check

Why should the incremental refresh filter fold back to the data source?

Go deeper

  1. 1Read Microsoft's incremental refresh setup guide.
  2. 2Create RangeStart and RangeEnd parameters and filter a date column.
  3. 3Understand when a model is large enough to need it.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge