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
EasyWrite Revenue LY: Revenue for the same dates one year earlier. It is checked for each month of each year.
Try it yourself
Revenue LY =| Year | Revenue LY |
|---|---|
| 2024 | |
| 2025 | |
| Total |
- Sales
- Revenue
- Total Units
- Customers
- Products
- Stores
- Customers
- Dates
- Date
- Year
- Quarter
- Month
- MonthNumber
- Weekday
- Targets
All lessons in Time Intelligence
3Comparing Periods
Same Period Last YearGrowth Year over YearThe Month BeforeMonth over Month GrowthThe Last 7 DaysThe Last 3 MonthsRecap - Year to Date Growth