Function ParallelPeriod

  • Although similar to the Cousin function, the ParallelPeriod function is more closely related to time series. The ParallelPeriod function takes the ancestor of the specified member at the specified level, finds the ancestor's sibling with the specified lag, and finally returns the parallel period of the specified member among the descendants of the sibling.

    The ParallelPeriod function has the following defaults:

    • If neither a level expression nor a member expression is specified, the default member value is the current member of the first hierarchy on the first dimension with a type of Time in the measure group.
    • If a level expression is specified, but a member expression is not specified, the default member value is Level_Expression.Hierarchy.CurrentMember.
    • The default index value is 1.
    • The default level is the level of the parent of the specified member.

    The ParallelPeriod function is equivalent to the following MDX statement:

    Cousin(Member_Expression, Ancestor(Member_Expression, Level_Expression) .Lag(Numeric_Expression))

    Parameters

    • calendarLevel: string
    • index: number
    • member: string

    Returns string

    a member from a prior period in the same relative position as a specified member.

Generated using TypeDoc