Menu
CoddyTech

The Last 3 Months

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

DATESBETWEEN(Dates[Date], start, end): the dates from start to end.

EOMONTH(date, -3) + 1 is the first day of the month two months back.

Last 3 Months = CALCULATE([Revenue], DATESBETWEEN(Dates[Date], EOMONTH(MAX(Dates[Date]), -3) + 1, MAX(Dates[Date])))

May covers March, April and May.

challenge icon

Challenge

Hard

Write Last 3 Months: Revenue of the row's month and the two before it. It is checked for each month of each year.

Try it yourself

Last 3 Months =
YearLast 3 Months
2024
2025
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
  • Stores
  • Customers
  • Dates
    • Date
    • Year
    • Quarter
    • Month
    • MonthNumber
    • Weekday
  • Targets
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Time Intelligence