EOMONTH DAX Function in Power BI

The EOMONTH DAX function returns the date in datetime format of the last day of the month, before or after a specified number of months.

DAX Syntax EOMONTH(start_date, months)

The function has the following parameters:

Example: Let’s we have following data in the table named “Customers”.

EOMONTH dax function in Power BI

The following dax expression returns the last date of the specified date.

DAX

End date of month = EOMONTH(Customers[Date], 0)

The output of the above dax expression is shown in the image below:

EOMONTH dax function in Power BI

Example: Let’s create a measure.

DAX

EOMONTH Measure = EOMONTH("12/09/2024",0)

The output of the above measure is shown in the image below:

EOMONTH dax function in Power BI