Time Intelligence Functions


Time intelligence functions support calculations to compare and aggregate data over time periods, supporting days, months, quarters, and years.
Function Description
CLOSINGBALANCEMONTH Evaluates the specified expression for the date corresponding to the end of the current month after applying specified filters.
CLOSINGBALANCEQUARTER Evaluates the specified expression for the date corresponding to the end of the current quarter after applying specified filters.
CLOSINGBALANCEYEAR Evaluates the specified expression for the date corresponding to the end of the current year after applying specified filters.
DATEADD Moves the given set of dates by a specified interval.
DATESBETWEEN Returns the dates between two given dates.
DATESINPERIOD Returns the dates from the given period.
DATESMTD Returns a set of dates in the month up to the last date visible in the filter context.
DATESQTD Returns a set of dates in the quarter up to the last date visible in the filter context.
DATESYTD Returns a set of dates in the year up to the last date visible in the filter context.
ENDOFMONTH Returns the end of month.
ENDOFQUARTER Returns the end of quarter.
ENDOFYEAR Returns the end of year.
FIRSTDATE Returns first non blank date.
FIRSTNONBLANK Returns the first value in the column for which the expression has a non blank value.
FIRSTNONBLANKVALUE Returns the first non blank value of the expression that evaluated for the column.
LASTDATE Returns last non blank date.
LASTNONBLANK Returns the last value in the column for which the expression has a non blank value.
LASTNONBLANKVALUE Returns the last non blank value of the expression that evaluated for the column.
NEXTDAY Returns a next day.
NEXTMONTH Returns a next month.
NEXTQUARTER Returns a next quarter.
NEXTYEAR Returns a next year.
OPENINGBALANCEMONTH Evaluates the specified expression for the date corresponding to the end of the previous month after applying specified filters.
OPENINGBALANCEQUARTER Evaluates the specified expression for the date corresponding to the end of the previous quarter after applying specified filters.
OPENINGBALANCEYEAR Evaluates the specified expression for the date corresponding to the end of the previous year after applying specified filters.
PARALLELPERIOD Returns a parallel period of dates by the given set of dates and a specified interval.
PREVIOUSDAY Returns a previous day.
PREVIOUSMONTH Returns a previous month.
PREVIOUSQUARTER Returns a previous quarter.
PREVIOUSYEAR Returns a previous year.
SAMEPERIODLASTYEAR Returns a set of dates in the current selection from the previous year.
STARTOFMONTH Returns the start of month.
STARTOFQUARTER Returns the start of quarter.
STARTOFYEAR Returns the start of year.
TOTALMTD Evaluates the specified expression over the interval which begins on the first of the month and ends with the last date in the specified date column after applying specified filters.
TOTALQTD Evaluates the specified expression over the interval which begins on the first day of the quarter and ends with the last date in the specified date column after applying specified filters.
TOTALYTD Evaluates the specified expression over the interval which begins on the first day of the year and ends with the last date in the specified date column after applying specified filters.

Last update: Aug 7, 2020   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

DAX Conventions
Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Deprecated

This parameter is deprecated and its use is not recommended.

Contribute

Want to improve the content of LASTNONBLANKVALUE? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.