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: FirstChild
Category: Navigation
Description: The FirstChild function returns the first child of a supplied member.
Syntax: Ā«MemberĀ».FIRSTCHILD
Technet Link: MDX FirstChild Function




The query below returns the first child for the member Washington in the Customer Geography hierarchy.
 

SELECT
      {} ON COLUMNS,
      {[Customer].[Customer Geography].[State-Province].[Washington].FirstChild} ON ROWS
FROM
      [Adventure Works]
 
 

 
The following query returns the first child for the April 2003 member in the Fiscal hierarchy of the Date dimension.
 

SELECT
      {} ON COLUMNS,
      {[Date].[Fiscal].[Month].[April 2003].FirstChild} ON ROWS
FROM
      [Adventure Works]
 
 

 
 

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