LastSibling (PQL)
                                    Returns the last child member of a specified member's parent.
- Returned Output: Member
 - Library: PQL \ Semantic \ Hierarchical
 - Version: 2020.00.000
 - Compatibility: Pyramid Query Language (PQL) data sources
 
Syntax
LastSibling( <Member> )
                                    
                                    * 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.
 - The function will not work on drill-path hierarchies.
 - For details on how to employ and use this function see the semantic calculation overview.
 
Different Function types
- This function is like the MDX LastSibling function.
 - Also see First Sibling and Last Child.
 
Examples
This example returns the member "Wyoming" from Geography hierarchy - since Wyoming is the last child (state) of the parent "USA" - determined from the member New York.
LastSibling([Customer].^[Geo Location].[USA].[New York])