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




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

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

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

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

 
 

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