How does the CLOSINGBALANCEMONTH function (DAX) work?

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



How do you use the CLOSINGBALANCEMONTH function?

The CLOSINGBALANCEMONTH function can be used to generate balance sheet values, as we want to view the inventory balance at the end of a period.

Related Blog Posts

Related Support Forum Posts

Understanding DAX Formula
Developing Complex Dax functions
Cashflow forecast – iterating results without circular ref

Considerations when using the CLOSINGBALANCEMONTH 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.

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

Related Video Tutorials

Formula examples using the CLOSINGBALANCEMONTH function


= CLOSINGBALANCEMONTH ( SUMX (ProductInventory, [UnitsBalance]*[UnitCost]),ProductInventory[InventoryDate] )

=CLOSINGBALANCEMONTH(Sum([SalesAmount]), ‘DimDate'[FullDateAlternateKey], ALL(‘DimDate'[FullDateAlternateKey]))

Related DAX Functions

Time Intelligence Functions

Related Course Modules



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.