Menu
CoddyTech

Same Period Last Year

Part of the Time Intelligence section of Coddy's Power BI journey. Lesson 11 of 17.

SAMEPERIODLASTYEAR(Dates[Date]) moves the row's dates back one year.

Revenue LY = CALCULATE([Revenue], SAMEPERIODLASTYEAR(Dates[Date]))

March 2025 shows March 2024. The rows of 2024 are blank: there is no 2023 data.

challenge icon

Challenge

Easy

Write Revenue LY: Revenue for the same dates one year earlier. It is checked for each month of each year.

Try it yourself

Revenue LY =
YearRevenue LY
2024
2025
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
  • Stores
  • Customers
  • Dates
    • Date
    • Year
    • Quarter
    • Month
    • MonthNumber
    • Weekday
  • Targets

All lessons in Time Intelligence