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: Mtd
Category: Time
Description: The MTD function returns all siblings of the supplied member starting at the first sibling and ending with the supplied sibling.
Syntax: MTD( [Ā«MemberĀ»] )
Technet Link: MDX Mtd Function




The query below returns all siblings up to and including the member October 6, 2003 from the Fiscal hierarchy in the Date dimension.
 

SELECT
      {} ON COLUMNS,
      MTD([Date].[Fiscal].[October 6, 2003]) ON ROWS
FROM
      [Adventure Works]
 
 

 
The following query returns all siblings up to and including the member January 15, 2003 from the Calendar hierarchy in the Date dimension.
 

SELECT
      {} ON COLUMNS,
      MTD([Date].[Calendar].[January 15, 2003]) ON ROWS
FROM
      [Adventure Works]
 
 

 
 

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