CLOSINGBALANCEYEAR DAX Function in Power BI

The CLOSINGBALANCEYEAR DAX function evaluates the expression at the last date of the year in the current context.

DAX Syntax CLOSINGBALANCEYEAR(Expression, Dates[, Filter][, Year_end_date])

The function has the following parameters:

Example: Let's create a measure with name "CLOSINGBALANCEYEAR Measure".

DAX

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

The output of the measure is shown below:

CLOSINGBALANCEYEAR dax function in Power BI

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