Evaluates the expression at the first date of the year in the current context.
OPENINGBALANCEYEAR (<expression>, <dates>, [<filter>], [<year_end_date>])
|Sr.No.||Parameter & Description|
An expression that returns a scalar value.
A column that contains dates.
An expression that specifies a filter to apply to the current context.
A literal string with a date that defines the year-end date.
If omitted, the default is December 31.
A scalar value.
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.
If the data has been filtered, the function changes the context in which the data is filtered, and evaluates the expression in the new context that you specify. For each column used in a filter parameter, any existing filters on that column are removed, and the filter used in the filter parameter is applied instead.
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.
Year Beginning Inventory Value:= OPENINGBALANCEYEAR ( SUMX (ProductInventory,[UnitsBalance]*[UnitCost]), ProductInventory[InventoryDate] )
26 Lectures 4.5 hours