CLOSINGBALANCEMONTH DAX Function in Power BI

The CLOSINGBALANCEMONTH DAX function evaluates the expression at the last date of the month in the current context.

DAX Syntax CLOSINGBALANCEMONTH(expression, dates[, filter])

The function has the following parameters:

Example: Let’s create a measure with name "CLOSINGBALANCEMONTH Measure".

DAX

CLOSINGBALANCEMONTH Measure = CLOSINGBALANCEMONTH(SUM('Students List'[10th Marks]),'Students List'[Dates])

The output of the above dax code is shown below:

CLOSINGBALANCEMONTH dax function in Power BI

Here the total 704 in the CLOSINGBALANCEMONTH Measure column, refers to the latest context i.e 14th August 1991.