Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 2 KB

closingbalancequarter-function-dax.md

File metadata and controls

59 lines (38 loc) · 2 KB
description title
Learn more about: CLOSINGBALANCEQUARTER
CLOSINGBALANCEQUARTER function (DAX) | Microsoft Docs

CLOSINGBALANCEQUARTER

[!INCLUDEapplies-to-measures-columns-tables-visual-calculations-discouraged]

Evaluates the expression at the last date of the quarter in the current context.

Syntax

CLOSINGBALANCEQUARTER(<expression>,<dates>[,<filter>])  

Parameters

Term Definition
expression An expression that returns a scalar value.
dates A column that contains dates.
filter (optional) An expression that specifies a filter to apply to the current context.

Return value

A scalar value that represents the expression evaluated at the last date of the quarter in the current context.

Remarks

  • 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.

      [!NOTE]
      Constraints on Boolean expressions are described in CALCULATE function.

      [!NOTE]
      The filter expression has restrictions described in CALCULATE function.

  • [!INCLUDE function-not-supported-in-directquery-mode]

Example

The following sample formula creates a measure that calculates the 'Quarter End Inventory Value' of the product inventory.

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

Related content

Time intelligence functions
CLOSINGBALANCEYEAR function
CLOSINGBALANCEMONTH function