Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Returns the parent of a member.
The Parent function returns the parent member of the specified member.
The following examples return the parent of the July 1, 2001 member. The first example specifies this member in the context of the Date attribute hierarchy and returns the All Periods member.
SELECT [Date].[Date].[July 1, 2001].Parent ON 0 FROM [Adventure Works]
The following example specifies the July 1, 2001 member in the context of the Calendar hierarchy.
SELECT [Date].[Calendar].[July 1, 2001].Parent ON 0 FROM [Adventure Works]