Sub topic 9
Refreshing Only Complete Periods
This chapter covers the Only refresh complete periods option in the incremental refresh policy. It assumes you can already create the RangeStart and RangeEnd parameters, filter a table with them so the filter folds, and define an archive period and an incremental refresh period. It also assumes you know that the service turns the policy into date-based partitions. If any of that is unclear, review the earlier chapters first.
The problem: partial periods in the model
A refresh policy with an incremental period of 10 days reloads the last 10 days of data on every refresh. By default, those 10 days include today. If the refresh runs at 08:52, the partition for today holds only the rows that existed at that moment.
That is often acceptable. It becomes a problem when the number you report depends on a finished period:
- A daily total for today looks low in the morning and keeps changing through the day.
- A daily average or a conversion rate is computed on half a day of activity.
- A day-over-day comparison shows a sharp drop that is only a timing artifact.
- The source loads a day's data in a nightly batch, so a mid-day read sees a half-loaded day.
The Only refresh complete periods option addresses this. It tells the service to shift the refresh window so that it ends at the last fully finished period. The current, unfinished period is left out of the Import partitions.
What the option does
The policy has one unit for the incremental period, such as days, months, or years. When the option is on, the service refreshes only whole units of that granularity. It excludes the unit that contains the refresh time.
| Setting | Incremental period | Refresh time (UTC) | `RangeEnd` for the newest partition | Newest data loaded |
|---|---|---|---|---|
| Option off | 10 days | 2026-11-27 08:52 | 2026-11-28 00:00 | Today, partial |
| Option on | 10 days | 2026-11-27 08:52 | 2026-11-27 00:00 | Yesterday, complete |
| Option off | 3 months | 2026-11-27 08:52 | 2026-12-01 00:00 | November, partial |
| Option on | 3 months | 2026-11-27 08:52 | 2026-11-01 00:00 | October, complete |
With the option on, the window for 10 days refreshed on 2026-11-27 covers 2026-11-17 through 2026-11-26. It still contains 10 days. Only its position moved.
The filter in your query does not change. It still uses >= RangeStart and < RangeEnd. The service supplies different parameter values for each partition. Because the upper boundary is exclusive, a RangeEnd of midnight on 2026-11-27 means no row dated 2026-11-27 is loaded.
let
Source = Sql.Database("myserver.database.windows.net", "SalesDb"),
FactSales = Source{[Schema = "dbo", Item = "FactSales"]}[Data],
Filtered = Table.SelectRows(
FactSales,
each [OrderDate] >= RangeStart and [OrderDate] < RangeEnd
)
in
FilteredYou don't edit this query when you turn the option on or off. The change lives in the policy dialog, not in the M code.
Configuring the option
In Power BI Desktop, right-click the table in the Data pane and choose Incremental refresh. Set the archive and incremental periods as usual. Then, under the optional settings, select Only refresh complete days. The label follows the granularity you chose for the incremental period, so it reads "complete months" or "complete years" for those units.
Publish the model, then refresh it in the service. The policy is applied at refresh time, and the partitions it creates reflect the option.
The option is stored with the table's refresh policy, alongside the rolling window and incremental period settings. You can see those settings in the model metadata:
{
"refreshPolicy": {
"policyType": "basic",
"rollingWindowGranularity": "year",
"rollingWindowPeriods": 5,
"incrementalGranularity": "day",
"incrementalPeriods": 10
}
}This excerpt shows the five-year archive and ten-day incremental period from earlier chapters. It does not show the complete-periods setting, so check the full policy in Desktop or through your model tooling rather than assuming it is on.
Effects on the rest of the model
The option changes more than the last partition. Think through these consequences before enabling it.
Reports lag by one period
With daily granularity, the model never contains today's data. A card showing "sales today" is empty or reflects the previous day. If users need current-day numbers, this option works against them. In that case, either leave it off or add a real-time partition, which is covered in the hybrid tables chapter.
With monthly granularity, the lag can be nearly a month. On 2026-11-27 the newest data would be October. Pick monthly granularity with this option only if reporting really is monthly.
Late-arriving rows are only caught inside the window
Say the incremental period is 1 day and the option is on. Each refresh loads exactly one complete day, yesterday. A row for two days ago that arrives late is never picked up, because that day is now in the archive period. Keep the incremental period longer than the longest delay with which your source can back-fill or correct data. A window of several days is cheap compared with the cost of silently missing rows.
Time is evaluated in UTC
The service determines which periods are complete using UTC. A company in Sydney or Los Angeles may find that "yesterday" in the model differs from its local yesterday for part of the day. If your date column holds local time, the day boundary in the data and the day boundary used by the policy can disagree, and a "complete" UTC day may contain only part of a local day, or the reverse. When you need exact alignment, store the date column in UTC or convert it consistently in the query, and test around midnight.
Detect data changes still applies
If you also use detect data changes, the polling query runs per partition inside the refresh window. The option moves that window, so the partition covering the current period is not polled. The polling column should then reflect updates to complete periods, such as a LastModified column on corrected rows.
Changing the option means a reload
Changing the policy in Desktop requires publishing again. Republishing replaces the dataset, and the first refresh afterwards reloads the whole retained window, as in the first-refresh chapter. Plan that refresh for a quiet time on a large table.
When to use it
Use the option when all of these hold:
- Consumers care about finished periods, such as daily or monthly totals.
- A partial period would mislead them, or the source writes a period in batches.
- A one-period delay is acceptable.
Leave it off when users expect near-current data, or when your source is a transactional system whose rows for the current period are complete as soon as they are written and where the freshest figure matters.
A middle path is to leave the option on and add a DirectQuery partition for the current period. That gives complete, stable history in Import and live data for the recent period. It requires a capacity that supports hybrid tables and is covered later in this tutorial.
Verifying the behavior
Check the result after the first refresh with the option on. A quick check is a measure that shows the newest date in the model:
Data Through = MAX ( FactSales[OrderDate] )
Days Behind =
DATEDIFF ( [Data Through], TODAY (), DAY )Put both on a card. With a daily incremental period and the option on, Days Behind should read 1 after a refresh. With the option off, it should read 0. If it reads 0 and you expected 1, the option is off in the published model, or you are looking at a model that was not republished.
If the date column is a datetime, MAX returns the latest timestamp. Format the measure as a date or truncate it with INT for display.
You can also confirm the window by inspecting partitions through the XMLA endpoint, described in the last chapter of this tutorial. The newest incremental partition should end at midnight of the current day, not the next day.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Today's rows are missing from the model | Option is on, as designed | Accept the lag, turn the option off, or add a DirectQuery partition |
| Today's rows appear but change during the day | Option is off | Turn the option on and republish |
| A late row is never loaded | Incremental period shorter than the source delay | Lengthen the incremental period |
| Totals differ from the source around midnight | Date column is local time, policy uses UTC | Normalize the date column to UTC and retest |
| `Days Behind` is 0 with the option on | Model was not republished, or the wrong dataset is being queried | Republish from Desktop and refresh again |
| Whole month appears missing | Monthly granularity with the option on | Use days, or switch to a shorter granularity |
Summary of decisions
- Turn the option on when partial periods mislead and a one-period lag is acceptable.
- Size the incremental period so that it covers the longest back-fill delay of the source, plus the one period the option excludes.
- Check the day boundary against UTC before trusting daily totals near midnight.
- Verify the result with a "data through" measure rather than assuming the setting took effect.
Exercise
A table has an incremental period of 7 days and Only refresh complete days is on. The service refreshes it on 2026-03-15 at 02:30 UTC. Which dates does the refresh window cover, and what is the value of RangeEnd for the newest partition?
Show answer
The window covers 2026-03-08 through 2026-03-14, which is 7 complete days. Today, 2026-03-15, is excluded. RangeEnd for the newest partition is 2026-03-15 00:00, and because the filter uses < RangeEnd, no row from 15 March is loaded.
Exercise
Your source back-fills corrections for up to 3 days after a sale. You use a 1-day incremental period with Only refresh complete days on. What goes wrong, and what would you change?
Show answer
Each refresh loads only yesterday, so corrections to rows from two or three days ago land in the archive period and are never reloaded. Increase the incremental period to at least 4 days (3 days of delay plus margin), or more, so the corrected days remain inside the refresh window.
Exercise
A finance team reports monthly revenue. They want only finished months in the model, but a manager also wants to see the current month so far. How can you satisfy both without making the Import partitions contain partial data?
Show answer
Keep Only refresh complete months on so the Import partitions hold complete months only. Add a DirectQuery partition for the current period with a hybrid table (on a capacity that supports it), so the current month is read live from the source while history stays in Import.