CLOSINGBALANCEYEAR Function (DAX)

How does the CLOSINGBALANCEYEAR function (DAX) work?

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

CLOSINGBALANCEYEAR Formula Syntax

CLOSINGBALANCEYEAR(
     <expression>,<dates>[,<filter>][,<year_end_date>]
)

How do you use the CLOSINGBALANCEYEAR function?

If you want to calculate the closing balances year wise.

Related Blog Posts

Related Support Forum Posts

Understanding DAX Formula
Developing Complex Dax functions

Considerations when using the CLOSINGBALANCEYEAR function

The dates argument can be any of the following:

  • A reference to a date/time column.
  • A table expression that returns a single column of date/time values.
  • A Boolean expression that defines a single-column table of date/time values.

The year_end_date parameter is a string literal of a date, in the same locale as the locale of the client where the workbook was created. The year portion of the date is ignored.

This DAX function is not supported for use in DirectQuery mode.

Related Video Tutorials

Formula examples using the CLOSINGBALANCEYEAR function

=CLOSINGBALANCEYEAR(SUMX(ProductInventory,ProductInventory[UnitCost]*ProductInventory[UnitsBalance]),DateTime[DateKey])

=CLOSINGBALANCEYEAR(Sum(Sales[Quantity]), Sales[OrderDate])

=CLOSINGBALANCEYEAR( COUNT (CRASH_DATA_T[CASE_NUMBER]), Calc_Date_T[CRASH_DATE])

Related DAX Functions

Time Intelligence Functions

Related Course Modules

Ultimate-Beginners-Guide-To-PowerBI

DOWNLOAD

To access our comprehensive DAX formula reference guide just insert your email address below. The resource will download immediately and we’ll also email it to you.