Power BI / Advanced: performance and governed delivery / Lesson 21
Incremental Refresh Boundary Validation
Test partition boundaries, late changes, and source reconciliation before accepting incremental refresh.
On this page
Lesson goals
- Define nonoverlapping refresh windows.
- Test events on exact window boundaries.
- Verify late changes and service-side refresh behavior.
Define the refresh contract
Incremental refresh partitions data by a configured time range, but the correct result depends on the source, policy, and update behavior. Define the event or update timestamp, timezone, historical retention, refresh window, and handling of late changes. Agree which source total and data cutoff will be used for reconciliation.
In this bounded Power Query lab, Source is a synthetic table with an EventTime datetime column and RangeStart and RangeEnd are datetime parameters. The M snippets are illustrative and require that environment; the public reader does not execute them. Consult the current service and connector documentation for deployment requirements.
Use a nonoverlapping boundary
A common half-open rule includes the start and excludes the end. Adjacent windows then assign an event exactly on the shared boundary to the later window once. The following filter shows that rule; the precise partition policy and supported folding behavior must be verified in the target environment.
Table.SelectRows(Source, each [EventTime] >= RangeStart and [EventTime] < RangeEnd)
The expression includes EventTime at RangeStart and excludes EventTime at RangeEnd.
Test a concrete month
For a synthetic January window, the next expression includes January 1 at midnight and excludes February 1 at midnight. Create control rows just before, exactly at, and just after each boundary, then inspect the selected identifiers. This fixed example is a diagnostic fixture rather than the production parameterized policy.
Table.SelectRows(Source, each [EventTime] >= #datetime(2026, 1, 1, 0, 0, 0) and [EventTime] < #datetime(2026, 2, 1, 0, 0, 0))
The fixed datetime bounds illustrate the same inclusive-start, exclusive-end rule.
Account for late changes
A record updated outside the refreshed window can remain stale unless the chosen policy and source strategy account for it. Test a late correction and a deletion according to the documented source behavior; do not assume every connector or policy handles them identically. Reconcile counts and totals by partition and investigate unmatched changes.
Verify the published path
Confirm source connectivity, credentials, folding where required, refresh history, and the displayed data cutoff in the actual service environment. Compare the partitioned result with a full control extract for a bounded period and test a representative consumer account. Preserve the prior model and recovery procedure until acceptance checks pass.
Common errors and fixes
A boundary event appears in two partitions.
- Why it happens
- Both adjacent windows included the shared boundary.
- How to fix it
- Use a consistent nonoverlapping boundary rule and rebuild the test.
- Prevent it next time
- Keep exact-boundary fixtures.
A corrected old record remains stale.
- Why it happens
- The change falls outside the refreshed range or source change strategy.
- How to fix it
- Apply the documented refresh or reprocessing procedure.
- Prevent it next time
- Define and test late-change handling.
Desktop preview is treated as proof of service refresh.
- Why it happens
- Credentials, folding, or service policy were not verified.
- How to fix it
- Test the published path and reconcile with source controls.
- Prevent it next time
- Include service-side checks in acceptance.
2 practice exercises
1. Which window contains an event exactly at February 1 midnight under adjacent [start, end) monthly windows?
Show worked solution
It is excluded from January’s window and included in February’s, so it belongs to one window under the stated convention.
2. A source changes a record older than the refresh window. What should be checked?
Show worked solution
Check the documented source and refresh policy for late changes, compare the source and model, and use the approved reprocessing procedure if needed. Do not assume the old partition refreshed.
Key takeaways
- Define nonoverlapping boundaries and test exact timestamps.
- Late changes require an explicit source and refresh policy.
- Validate the published service path against source controls.