Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.16 KB

File metadata and controls

49 lines (35 loc) · 1.16 KB
title Parent (MDX) | Microsoft Docs
ms.date 06/04/2018
ms.prod sql
ms.technology analysis-services
ms.custom mdx
ms.topic reference
ms.author owend
ms.reviewer owend
author minewiskan

Parent (MDX)

Returns the parent of a member.

Syntax

  
Member_Expression.Parent   

Arguments

Member_Expression
A valid Multidimensional Expressions (MDX) expression that returns a member.

Remarks

The Parent function returns the parent member of the specified member.

Examples

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]  

See Also

MDX Function Reference (MDX)