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: MemberToStr
Category: String
Description: The MemberToStr function returns a string that corresponds to a supplied member.
Syntax: MEMBERTOSTR( Ā«MemberĀ» )
Technet Link: MDX MemberToStr Function




The query below returns an MDX formatted string for the July 2003 member.
 
WITH
      MEMBER [Measures].[MemStr] AS
      MEMBERTOSTR([Date].[Fiscal].[Month].[July 2003])
SELECT
      {[Measures].[MemStr]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The query below returns an MDX formatted string for the Month members in the Fiscal hierarchy for member FY 2002.
 
WITH
      MEMBER [Measures].[FiscalDateStrs] AS
      MEMBERTOSTR([Date].[Fiscal].CurrentMember)
SELECT
      {[Measures].[FiscalDateStrs]} ON COLUMNS,
      DESCENDANTS([Date].[Fiscal].[FY 2002], [Date].[Fiscal].[Month]) ON ROWS
FROM
      [Adventure Works]
 
 

 
 

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