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: Ascendants
Category: Navigation
Description: The Ascendants function returns a set of ascendants for a specified member along with the member itself.
Syntax: ASCENDANTS( Ā«MemberĀ» )
Technet Link: MDX Ascendants Function




This query below returns a set of all members above the Touring Tire member of the Product Categories hierarchy in the Product dimension.
 

SELECT
      {} ON COLUMNS,
      {ASCENDANTS([Product].[Product Categories].[Product].[Touring Tire])} ON ROWS
FROM
      [Adventure Works]
 
 

 
The query below returns the members above the Montana member of the Geography hierarchy in the Geography dimension.
 

SELECT
      {} ON COLUMNS,
      ASCENDANTS([Geography].[Geography].[State-Province].[Montana])} ON ROWS
FROM
      [Adventure Works]
 
 

 
 

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