PrevMember (PQL)

Returns the previous member in a hierarchy prior to the specified member, based on the hierarchy's natural order.

  • Returned Output: Member
  • Library: PQL \ Semantic \ Member
  • Version: 2018.00.000
  • Compatibility: Pyramid Query Language (PQL) data sources

Syntax

PrevMember( <Member> )

Syntax Alternatives

<Member> .PrevMember()

* Click on the function's arguments above for more details on the input values.

Comments
  • The member needs to be the unique name of an existing member in a hierarchy in the model.
  • For details on how to employ and use this function see the semantic calculation overview.
Different Function types
  • This function is similar to the MDX prevmember function.
  • The reciprocal NextMember function operates similarly.

Examples

The following example would return the member 2017 from the year hierarchy in the dates dimension (or table):

PrevMember( [dates].[year].[2018] )