Home      Functions     Common Solutions      Contact     






MDX Functions:
 
MDX Functions

 
Common Solutions

Common Solutions
 
Resource Links

MDX Books
MDX Related Software
MDX Related Blogs
 
Other Links

Contact Us
 
Microsoft SQL Server Analysis Services Function Page
Function Name: Parent
Category: Navigation
Description: The Parent function returns the parent for a supplied member.
Syntax: Ā«MemberĀ».PARENT
Technet Link: MDX Parent Function




The query below returns the parent for the member November 2003 in the Calendar hierarchy in the Date dimension.
 

SELECT
      {} ON COLUMNS,
      {[Date].[Calendar].[Month].[November 2003].Parent} ON ROWS
FROM
      [Adventure Works]
 
 

 
The following query returns the parent for the member November 15, 2003 in the Calendar hierarchy in the Date dimension.
 

SELECT
      {} ON COLUMNS,
      {[Date].[Calendar].[November 15, 2003].Parent} ON ROWS
FROM
      [Adventure Works]
 
 

 
The query below returns the parent for the member Oregon in the Geography hierarchy in the Geography dimension.
 

SELECT
      {} ON COLUMNS,
      {[Geography].[Geography].[State-Province].[Oregon].Parent} ON ROWS
FROM
      [Adventure Works]
 
 

 
 

 
Copyright 2008 by MDXpert.com.
 
Terms of Use                              Privacy Statement
 
Site Powered By - WinHost.Com