Time intelligence functions

NAME
DESCRIPTION

Performs the specified aggregation like minimum/maximum/average/sum on a measure over a specified time range.

Returns the start, end, previous, or next time period as specified.

Filters measure values across a period range that meet specified conditions.

Used to filter data for the last n days before the current date.

Used to filter data for the last n months before the current month.

Used to filter data for the last n quarters before the current quarter.

Used to filter data for the last n years before the current year.

Returns data for a month based on the year and month number.

Returns data for a range of quarters based on the year and quarter number.

Returns data for the year(s) based on the input years passed.

Used to filter data for the next n days after the current date.

Used to filter data for the next n months after the current month.

Used to filter data for the next n quarters after the current quarter.

Used to filter data for the next n years after the current year.

Month-to-Date. Returns data from the 1st of the current month through the current date. An offset can be used to include data from the past months.

Quarter-to-Date. Returns data from the 1st of the current quarter to the current date. An offset can be used to include data from the past quarters.

Year-to-Date. Returns data from the start of the current year to the present date. An offset can be used to include data from the past years.

Returns the moving average of a measure over a specified date range.

Returns the moving sum of a measure over a specified date range.

Returns the date after shifting a date either backwards or forwards by a specified time period.

Evaluates the month-to-date value of the measure in the current context. Returns data from the start of the current month up to the present date.

Evaluates the quarter-to-date value of the measure in the current context. Returns data from the start of the current calendar or fiscal quarter up to the present date.

Evaluates the year-to-date value of the measure in the current context. Returns data from the start of the current calendar or fiscal year (e.g., January 1) up to the present date.

Returns the value of a measure for a specified date or a date shift relative to the current column.

Last updated

Was this helpful?