Time Intelligence Functions Flashcards
OPENINGBALANCEMONTH(expression,dates[,filter])
Evaluates the expression at the first date of the month in the current context.
OPENINGBALANCEQUARTER(expression,dates[,filter])
Evaluates the expression at the first date of the quarter, in the current context.
OPENINGBALANCEYEAR(expression,dates[,filter][,year_end_date])
Evaluates the expression at the first date of the year in the current context.
CLOSINGBALANCEMONTH(expression,dates[,filter])
Evaluates the expression at the last date of the month in the current context.
CLOSINGBALANCEQUARTER(expression,dates[,filter])
Evaluates the expression at the last date of the quarter in the current context.
CLOSINGBALANCEYEAR(expression,dates[,filter][,year_end_date])
Evaluates the expression at the last date of the year in the current context.
TOTALQTD(expression,dates[,filter])
Evaluates the value of the expression for the dates in the quarter to date, in the current context.
TOTALMTD(expression,dates[,filter])
Evaluates the value of the expression for the month to date, in the current context.
TOTALYTD(expression,dates[,filter][,year_end_date])
Evaluates the year-to-date value of the expression in the current context.
NEXTDAY(dates)
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.
NEXTMONTH(dates)
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.
PREVIOUSMONTH(Dates)
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.
PREVIOUSQUARTER(dates)
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.
PREVIOUSYEAR(dates[,year_end_date])
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.
NEXTQUARTER(dates)
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.
NEXTYEAR(dates[,year_end_date])
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.
PREVIOUSDAY(dates)
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.
SAMEPERIODLASTYEAR(dates)
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.
DATESINPERIOD(dates, start_date, number_of_intervals, interval)
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.
DATESBETWEEN(Dates, StartDate, EndDate)
Returns a table that contains a column of dates that begins with a specified start date and continues until a specified end date.
PARALLELPERIOD(dates,number_of_intervals,interval)
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.
DATEADD(dates,number_of_intervals,interval)
Returns 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.
DATESMTD(dates)
Returns a table that contains a column of the dates for the month to date, in the current context.
DATESQTD(dates)
Returns a table that contains a column of the dates for the quarter to date, in the current context.