Cheat Sheets/Power BI/PREVIOUSMONTH
DAX function

PREVIOUSMONTHDAX function reference

The prior month.

Syntax

dax
PREVIOUSMONTH(<dates>)

Examples

dax
CALCULATE(SUM(Sales[Amount]), PREVIOUSMONTH('Date'[Date]))
A number
dax
VAR ThisMonth = SUM(Sales[Amount])
VAR LastMonth = CALCULATE(SUM(Sales[Amount]), PREVIOUSMONTH('Date'[Date]))
RETURN DIVIDE(ThisMonth - LastMonth, LastMonth)
Month-over-month growth %
dax
CALCULATE(SUM(Sales[Amount]), PREVIOUSMONTH('Date'[Date]), ALL(Sales[Channel]))
Prior month total across all channels

Common mistakes & gotchas

Related DAX functions

From Time intelligence

← Back to the Power BI (DAX) cheat sheet