Cheat Sheets/Power BI/ENDOFMONTH
DAX function

ENDOFMONTH — DAX function reference

Last day of the month in context.

Syntax

dax
ENDOFMONTH(<dates>)

Examples

dax
ENDOFMONTH('Date'[Date])
→ A date
dax
CALCULATE([Total Inventory], ENDOFMONTH('Date'[Date]))
→ Month-end snapshot of an inventory/balance measure
dax
DATEDIFF(TODAY(), ENDOFMONTH('Date'[Date]), DAY)
→ Days remaining until month end

Common mistakes & gotchas

Related DAX functions

From Time intelligence

← Back to the Power BI (DAX) cheat sheet