CLOSINGBALANCEQUARTER function


Advertisements

Description

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

Syntax

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

Parameters

Sr.No. Parameter & Description
1

expression

An expression that returns a scalar value.

2

dates

A column that contains dates.

3

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

Constraints on Boolean expressions −

  • The expression cannot reference a calculated field.

  • The expression cannot use CALCULATE function.

  • The expression cannot use any function that scans a table or returns a table, including aggregation functions.

However, a Boolean expression can use any function that looks up a single value, or that calculates a scalar value. The filter parameter can be a Boolean expression or a table expression that defines a filter.

Example

Quarter End Inventory Value:=CLOSINGBALANCEQUARTER ( 
   SUMX (ProductInventory,[UnitsBalance]*[UnitCost]),ProductInventory[InventoryDate]
) 
dax_functions_time_intelligence.htm

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements