description | title |
---|---|
Learn more about: CLOSINGBALANCEQUARTER |
CLOSINGBALANCEQUARTER function (DAX) | Microsoft Docs |
[!INCLUDEapplies-to-measures-columns-tables-visual-calculations-discouraged]
Evaluates the expression at the last date of the quarter in the current context.
CLOSINGBALANCEQUARTER(<expression>,<dates>[,<filter>])
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. |
A scalar value that represents the expression evaluated at the last date of the quarter in the current context.
-
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]
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])
Time intelligence functions
CLOSINGBALANCEYEAR function
CLOSINGBALANCEMONTH function