DAX code
Previous Month Sales =
CALCULATE([Total Sales], DATEADD('Date'[Date], -1, MONTH))
Shifts the current filter context back exactly one month and re-evaluates sales.
Type your table and column names once. Every measure below updates.
Previous Month Sales =
CALCULATE([Total Sales], DATEADD('Date'[Date], -1, MONTH))
Generate a Power BI date table
Works whether the current context is a single day, a partial month, or a full month.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Previous Month Sales.