Your year-to-date equals the month and last year is blank: the date table is missing

Updated 2026-11-27 · 3 min read

Symptom

TOTALYTD returns the monthly value; SAMEPERIODLASTYEAR returns nothing.

Cause

Time intelligence needs a continuous date table, marked as such.

Fix

Add the date table, relate it, then write three measures.

The problem

Your YTD measure returns the same value as the month, or the previous-year measure is blank.

The fix

Time-intelligence functions need a date table with one row per day, no gaps, related to the fact table and marked as a date table (Table tools › Mark as date table).

Revenue YTD = TOTALYTD ( [Revenue], 'Date'[Date] )

Revenue PY = CALCULATE ( [Revenue], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )

Revenue YTD PY = CALCULATE ( [Revenue YTD], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )

For a fiscal year ending in June, add the year-end date: TOTALYTD ( [Revenue], 'Date'[Date], "06-30" ).

Keep learning

Generate a Power BI report for free