Time Series Functions
Time series functions enable you to aggregate and forecast data based on time dimensions. For example, you might use the AGO function to calculate revenue from one year ago.
Time dimension members must be at or below the level of the function. Because of this, one or more columns that uniquely identify members at or below the given level must be projected in the query.
| Function | Example | Description | Syntax |
|---|---|---|---|
|
AGO |
|
Calculates the aggregated value of a measure in a specified time period in the past. For example, to calculate monthly revenue one year ago, use |
Where:
|
|
PERIODROLLING |
|
Calculates the aggregate of a measure over the period starting x units of time and ending y units of time from the current time. For example, |
Where:
|
|
TODATE |
|
Calculates the aggregated value of a measure from the start of a time period to the latest time period, for example, year to date calculations. For example, to calculate Year to Date Sales, use |
Where:
|