Skip to content
VirtualLP Virtual Learning Platform

Time Intelligence: YTD, Previous Year and Rolling Periods

8 min read Topic 16 of 38 3 hands-on labs

Understand it in simple language

Time comparisons need an agreed calendar, reporting date and completeness rule. A partial current month compared with a full prior month can mislead. Fiscal years may differ from calendar years. The supplied sales contain only January and February 2025, so prior-year results are blank unless you add earlier data.

Revenue YTD = TOTALYTD([Revenue], 'Date'[Date])
Revenue PY = CALCULATE([Revenue], SAMEPERIODLASTYEAR('Date'[Date]))
YoY Change = DIVIDE([Revenue] - [Revenue PY], [Revenue PY])
Revenue Rolling 3M = CALCULATE([Revenue], DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -3, MONTH))

These examples use a conventional marked calendar and active OrderDate relationship.

Do it step by step

Build a matrix using Date year and month, Revenue and Revenue YTD. January is 1250; February is 1050; February YTD is 2300. Add prior-year data in a separate exercise before interpreting YoY. Show a data-through date on the page.

Check your result

A blank prior-year result is not proof of a broken function. Does the model actually contain matching prior-year facts?

If something goes wrong

Use the calendar column, not a text Month field, as the time-function argument.

Practice data and learning method

Industry practice collection: downloadable retail, finance, HR and operations datasets, dictionaries, full walkthroughs and answer sheets. The cases contain multiple years, multiple related tables, deliberate data defects and known-answer checks. Progress from the small foundation files below to these cases; do not reuse the foundation totals for the larger datasets.

Download Sales.csv, Products.csv, and the dataset guide. These files contain synthetic training data, not real customers. Use the Power BI virtual labs for guided browser practice. Each lab states its supported operations. Then repeat the procedure above in the actual Microsoft tools and save evidence of your result. Try another filter or an intentionally incorrect setting and explain what changed before moving on.

Guided practicals for this topic

Virtual lab · Microsoft Power BI · 25 min

Create a calendar and validate YTD

Guided browser practice with visible data, checked actions and expected results. Repeat the linked tutorial in Power BI Desktop.

Open lab

Virtual lab · Microsoft Power BI · 35 min

Validate YTD against three years of sales

Hands-on retail case: load the downloadable CSV tables, perform the actions, inspect the full-data result and reconcile it. Includes a paired Desktop procedure.

Open lab

Virtual lab · Microsoft Power BI · 35 min

Compare 2025 revenue with its actual prior year

Hands-on retail case: load the downloadable CSV tables, perform the actions, inspect the full-data result and reconcile it. Includes a paired Desktop procedure.

Open lab

Continue learning from Microsoft

Power BI documentation · DAX reference · Power Query M reference · Power BI analyst skills map. Features, licensing, menus and availability can change; check the relevant official page for your environment.

Practise this topic

Hands-on virtual labs

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.