Page 16 - DAX-Formula-Reference-Guide-Enterprise-DNA_Neat
P. 16
DAX Formulas Reference Guide | Date and Time Functions (DAX)
NEXTQUARTER Function (DAX)
Returns a table that contains a column of all dates in the next quarter, based on the first
date specified in the dates column, in the current context.
Syntax: NEXTQUARTER(<dates>)
Parameter Definition
dates A column that contains dates.
Return Value:
A table containing a single column of date values.
=CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]),NEXTQUARTER(‘DateTime’[Date
Key]))
NEXTYEAR Function (DAX)
Returns a table that contains a column of all dates in the next year, based on the first
date in the dates column, in the current context.
Syntax: NEXTYEAR(<dates>[,<year_end_date])
Parameter Definition
dates A column that contains dates.
year_end_date A literal string with a date that defines the year-end date. The default is
December 31st. (Optional)
Return Value:
A table containing a single column of date values.
=CALCULATE(SUM(InternetSales_USA[SalesAmount_USD]),NEXTYEAR(‘DateTime’[DateK
ey]))
OPENINGBALANCEMONTH Function (DAX)
Evaluates the expression at the first date of the month in the current context.
Syntax: OPENINGBALANCEMONTH(<expression>,<dates>[,<filter>])
Parameter Definition
expression An expression that returns a scalar value.
dates A column that contains dates.
filter An expression that specifies a filter to apply to the current context.
(Optional)
+64 21 164 5508 | info@enterprisedna.co 16

