Time Intelligence Functions Using DAX

  1. Home
  2. Time Intelligence Functions Using DAX

Data Analysis Expressions (DAX) includes time-intelligence functions that enable you to manipulate data using time periods, including days, months, quarters, and years, and then build and compare calculations over those periods.

DA-100 exam is retired. Exam PL-300: Microsoft Power BI Data Analyst, is available.

FunctionDescription
CLOSINGBALANCEMONTHIt is used to evaluate the expression at the last date of the month in the current context.
CLOSINGBALANCEQUARTERIt is used to evaluate the expression at the last date of the quarter in the current context.
CLOSINGBALANCEYEARIt is used to evaluate the expression at the last date of the year in the current context.
DATEADDIt is used to return a table that contains a column of dates, shifted either forward or backward in time by the specified number of intervals from the dates in the current context.
DATESBETWEENIt returns a table that contains a column of dates that begins with a specified start date and continues until specified end date.
DATESINPERIODIt returns a table that contains a column of dates that begins with a specified start date and continues for the specified number and type of date intervals.
DATESMTDIt returns a table that contains a column of the dates for the month to date, in the current context.
DATESQTDIt returns a table that contains a column of the dates for the quarter to date, in the current context.
DATESYTDIt returns a table that contains a column of the dates for the year to date, in the current context.
ENDOFMONTHIt returns the last date of the month in the current context for the specified column of dates.
ENDOFQUARTERIt returns the last date of the quarter in the current context for the specified column of dates.
ENDOFYEARIt returns the last date of the year in the current context for the specified column of dates.
FIRSTDATEIt returns the first date in the current context for the specified column of dates.
FIRSTNONBLANKIt returns the first value in the column, column, filtered by the current context, where the expression is not blank
LASTDATEIt returns the last date in the current context for the specified column of dates.
LASTNONBLANKIt returns the last value in the column, column, filtered by the current context, where the expression is not blank.
NEXTDAYIt returns a table that contains a column of all dates from the next day, based on the first date specified in the dates column in the current context.
NEXTMONTHIt returns a table that contains a column of all dates from the next month, based on the first date in the dates column in the current context.
NEXTQUARTERIt 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.
NEXTYEARIt 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.
OPENINGBALANCEMONTHIt is used to evaluate the expression at the first date of the month in the current context.
OPENINGBALANCEQUARTERIt is used to evaluate the expression at the first date of the quarter, in the current context.
OPENINGBALANCEYEARIt is used to evaluate the expression at the first date of the year in the current context.
PARALLELPERIODIt returns a table that contains a column of dates that represents a period parallel to the dates in the specified dates column, in the current context, with the dates shifted a number of intervals either forward in time or back in time.
PREVIOUSDAYIt returns a table that contains a column of all dates representing the day that is previous to the first date in the dates column, in the current context.
PREVIOUSMONTHIt returns a table that contains a column of all dates from the previous month, based on the first date in the dates column, in the current context.
PREVIOUSQUARTERIt returns a table that contains a column of all dates from the previous quarter, based on the first date in the dates column, in the current context.
PREVIOUSYEARIt returns a table that contains a column of all dates from the previous year, given the last date in the dates column, in the current context.
SAMEPERIODLASTYEARIt returns a table that contains a column of dates shifted one year back in time from the dates in the specified dates column, in the current context.
STARTOFMONTHIt returns the first date of the month in the current context for the specified column of dates.
STARTOFQUARTERIt returns the first date of the quarter in the current context for the specified column of dates.
STARTOFYEARIt returns the first date of the year in the current context for the specified column of dates.
TOTALMTDIt is used to evaluate the value of the expression for the month to date, in the current context.
TOTALQTDIt is used to evaluate the value of the expression for the dates in the quarter to date, in the current context.
TOTALYTDIt is used to evaluate the year-to-date value of the expression in the current context.

Learn more about Time Intelligence Functions

Microsoft Exam DA-100 Free Practice Test
Menu