The Month Before
Part of the Time Intelligence section of Coddy's Power BI journey. Lesson 13 of 17.
DATEADD(Dates[Date], number, interval) moves the row's dates; negative is back.
Revenue PM = CALCULATE([Revenue], DATEADD(Dates[Date], -1, MONTH))July shows June; January shows the December before.
The interval can be DAY, MONTH, QUARTER or YEAR.
Challenge
EasyWrite Revenue PM: Revenue of the month before. It is checked for each month of each year.
Try it yourself
Revenue PM =| Year | Revenue PM |
|---|---|
| 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