Go to primary content

Parallel Period

Calculates the values of a prior parallel period..

The template presents a period, a measure of the analytic view, an attribute dimension the analytic view is dimensioned by, a hierarchy that uses the attribute dimension, a number that specifies the offset, a level, and a position. To select a different value, click the underlined value in the template and make a selection from the Select Measures dialog box or the drop-down list or enter a different number value.

Template

{ Parallel period | Parallel period closest } for the measure name measure for the attribute dimension name attribute dimension and the hierarchy name hierarchy number level name ago based on the position from the { beginning to end | end to beginning } of the period.

Example: Example of Parallel Period

This sales_year_ago calculated measure returns sales values for the previous year.

Calculation in Template

Parallel period for the SALES measure for the TIME_ATTR_DIM attribute dimension and the TIME_HIER hierarchy 1 YEAR ago based on the position from the beginning to end of the period.

Definition of Calculated Measure in Analytic View

The MEASURES clause of the SALES_AV analytic view definition includes this definition of the sales_year_ago calculated measure:

sales_year_ago AS
LAG (SALES) OVER (HIERARCHY TIME_HIER OFFSET 1 ACROSS ANCESTOR AT LEVEL YEAR)

SELECT Statement Using the Calculated Measure

Query the analytic view, selecting sales and sales_year_ago values.

SELECT time_hier.member_name as TIME,
 sales,
 sales_year_ago
FROM
 sales_av HIERARCHIES(time_hier)
WHERE time_hier.level_name IN ('YEAR')
ORDER BY time_hier.hier_order;

Results of the Query

TIME    SALES          SALES_YEAR_AGO
------  -------------  --------------
CY2011  6755115980.73	       (null)
CY2012  6901682398.95   6755115980.73
CY2013  7240938717.57   6901682398.95
CY2014  7579746352.89   7240938717.57
CY2015  7941102885.15   7579746352.89