Measure report latency and refresh only the required history
A model retains five years but only recent orders change routinely.
Measure report latency and refresh only the required history
A model retains five years but only recent orders change routinely. Scan enough history to handle corrections and schedule explicit processing for older repairs. Independently time slow visuals so a refresh change is judged against the problem it actually solves.
At 1:34:41 the speaker retains five years but processes a recent window. The local lab adds an older restatement to show exactly which work the routine window leaves out.
Work through the decision
A page takes eight seconds, seven of which are spent drawing marks. Will tuning the measure necessarily remove seven seconds?
Check your reasoning
Use the breakdown to reduce visual density or the number of marks. Repeat the same interaction and compare display and query durations separately.
Continue in the recording · 1:26:45 · 1:31:26 · 1:33:26.
Decisions and tradeoffs
- Performance Analyzer
- Separate DAX query time, visual display and other delays in a recorded interaction.
- Selective incremental refresh
- Partition by a date predicate that can reach the source. Refresh the recent mutable period while retaining older history.
- Targeted historical partition processing
- A correction outside the rolling window requires explicit processing of its historical partition or a deliberate expansion of the window.
- Frame Direct Lake after the load
- Coordinate refresh or framing with a completed Delta load when consumers must see a consistent published batch.
- Inspect SQL endpoint fallback
- Direct Lake on SQL endpoints can fall back to DirectQuery under supported conditions. A SQL view or security configuration can affect the path.
- Direct Lake on OneLake
- This variant reads eligible Delta tables in OneLake and does not provide the SQL endpoint DirectQuery fallback path.
Practice each guide skill
Use these prompts in the order of the published guide. Microsoft bullet numbers here are local references.
- Record the same interaction twice in Performance Analyzer and compare visual display with DAX query time.
- Compare an iterator across an entire fact with a measure over a filtered narrow set. Validate the value and measure timings.
- Identify whether the SQL endpoint variant can fall back. Coordinate framing with completed upstream changes.
- Check data location, supported tables, security and fallback requirements before selecting the OneLake or SQL endpoint variant.
- Apply half-open RangeStart and RangeEnd filters; choose retention and refresh horizons and arrange older restatements separately.
Official objectives for this lesson
Measure the partition work for a late correction
Run this small simulation and compare the number of records read under a full and a rolling refresh. Day 2 is restated after it leaves the routine window. Run with Python 3 and its standard library.
source = {day: [day, day + 1] for day in range(1, 11)}
model = {day: sum(rows) for day, rows in source.items()}
source[2][0] += 5
source[10][1] += 3
def process(days):
reads = 0
for day in days:
model[day] = sum(source[day])
reads += len(source[day])
return reads
print("rolling reads:", process([9, 10]), "total:", sum(model.values()))
print("repair reads:", process([2]), "total:", sum(model.values()))
print("full reads:", process(sorted(source)), "total:", sum(model.values()))
Check the result
rolling reads: 4 total: 123 repair reads: 2 total: 128 full reads: 20 total: 128
The recent refresh captured only the three-unit change. After processing the older partition, six combined reads reach the same result as twenty full reads. These counts model source work; actual folding and refresh metrics need a Fabric workspace.
Related lesson · Optimize the measured bottleneck
Measure report latency and refresh only the required history quiz
Answer 3 questions. Check each answer for an explanation.
Worked example · Measure report latency and refresh only the required history