Power BI for Data Analytics & Business Intelligence
Back to The DAX Evaluation Engine & Business Logic

Time Intelligence: SAMEPERIODLASTYEAR vs DATEADD vs PARALLELPERIOD

Comparative breakdown of DAX time-intelligence functions: exact sub-period grain retention vs full parent interval expansion.

15 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Model Setup & Baseline Measure — Inspect calendar relationships and create the base total sales aggregation measure.
  2. SAMEPERIODLASTYEAR Implementation — Author a prior-year measure and observe how visual row context changes the calculation.
  3. PARALLELPERIOD Configuration — Create flexible period-shifting measures using month and year intervals.
  4. Granularity & Context Comparison — Evaluate differences between SAMEPERIODLASTYEAR and PARALLELPERIOD at daily table granularities.
  5. DATEADD Measure Setup — Configure DATEADD with interval parameters and compare outputs against PARALLELPERIOD.
  6. Partial Period Slicer Behavior — Test mid-month slicer filters to contrast DATEADD date-preservation against PARALLELPERIOD full-month expansion.
PDF notes

Frequently asked questions

When do SAMEPERIODLASTYEAR and DATEADD return identical results?

They return identical results whenever DATEADD is configured with an interval of -1 YEAR or -12 MONTH, as both preserve the exact filtered date set.

Why does PARALLELPERIOD repeat the same value for every day in a month visual?

PARALLELPERIOD expands the filter context to the full shifted interval, calculating the total month's aggregation across every individual daily row.

Why does PARALLELPERIOD reject DAY as an interval argument?

PARALLELPERIOD is designed to expand to complete parent calendar periods; for day-level shifts, use DATEADD with DAY.

How does DATEADD handle partial months when a slicer starts mid-month?

DATEADD shifts only the specific active dates in the slicer selection, leaving out the unsliced portion of the month.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.