Calendar-based features
Calendar metadata versus classic date-column syntax
Microsoft Learn guidance retrieved for this batch labels enhanced calendar-based time intelligence as preview. It adds model metadata that defines the meaning of time columns; availability and behavior depend on the installed build. Keep the classic model as the core learning path; use a disposable copy for optional evaluation. Do not enable preview features in a production model just for a lesson. Use the isolated Import model in labs/date-time-intelligence/README.md. It has a single active one-to-many relationship from Dates[Date] to Sales[SaleDate], single-direction filtering, no RLS, en-US formula separators, USD whole-dollar amounts and a certified synthetic data cutoff of February 15, 2025. Native Desktop/DAX results are predicted, not executed. Each named measure is created separately. Do not use the auto date hierarchy.
Example 1 — Define a fiscal calendar
In an approved build supporting enhanced calendar-based time intelligence, define a calendar named Fiscal Calendar on Dates, assigning a complete Year category to FiscalYear, a complete Date category to Date, and appropriate fiscal month categories (for example a unique fiscal year-month key for Month and FiscalMonth for Month of Year). A complete period identifies a particular year or month, whereas a partial label repeats. Verify assignments and run available calendar validations. In that separate model create:
Fiscal Calendar YTD = TOTALYTD([Revenue], 'Fiscal Calendar')Expected business result at February 15, 2025 is 460, to be compared against the classic fiscal measure. The calendar name refers to metadata, not a column or a second table. Do not pass a fiscal year-end string to the calendar overload. Actual preview execution is NOT RUN.
Example 2 — Define week boundaries before WTD
An ISO-style Monday-start week puts Monday December 30, 2024 in week 1 of week-year 2025, and Sunday December 29 in week 52 of week-year 2024. A week key must include the week-year, not simply the Gregorian year. In a separate illustrative seven-day fixture, Monday February 10, 2025 through Sunday February 16, 2025 is one week. Through Saturday February 15 the supplied sales are 90 + 30 = 120. If a verified calendar named ISO Calendar has the correct complete Week and Date categories, the optional expression is:
Week Revenue = TOTALWTD([Revenue], 'ISO Calendar')The result at February 15 should be 120 under the stated week definition. Treat this as a test vector, not native evidence. The DAX calendar-based API can use sparse date sets; this lab deliberately retains a full date dimension so missing sales days remain visible.
Separate semantic changes from version changes
A classic leap-day shift from February 29 to February 28 of the prior year can differ from a calendar-based ordinal-day shift, which can map to March 1. DATEADD calendar-specific extension and truncation choices also affect month-end shifts. Do not mix overloads or use newer options in a build that only supports classic syntax. Document preview flag, metadata, actual build, date selection, security mode and result before migration. A faster execution claim needs a real controlled benchmark.
Practice — Review a migration
Write an acceptance checklist for replacing a classic fiscal YTD measure with calendar metadata. Include fixed fiscal boundaries, ISO week-year rollover, leap-day selection, partial-period guard and native comparison. State which evidence is unavailable without an approved Desktop build. Keep the existing classic measure until the new path is verified.
Further official reading
Microsoft Learn: desktop time intelligence · Microsoft Learn: dateadd function dax
These links provide supporting context; the local fixture and its expected results remain unchanged.