Menu
CoddyTech

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 icon

Challenge

Easy

Write Revenue PM: Revenue of the month before. It is checked for each month of each year.

Try it yourself

Revenue PM =
YearRevenue PM
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