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: FirstSibling
Category: Navigation
Description: The FirstSibling function returns the first sibling for the parent of a supplied member.
Syntax: Ā«MemberĀ».FIRSTSIBLING
Technet Link: MDX FirstSibling Function




The query below returns the first sibling for the parent of the Road Bikes member from the Product Categories hierarchy in the Product dimension.
 

SELECT
      {} ON COLUMNS,
      {[Product].[Product Categories].[Subcategory].[Road Bikes].FirstSibling} ON ROWS
FROM
      [Adventure Works]
 
 

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

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

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

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

 
 

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