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: TupleToStr
Category: String
Description: The TupleToStr function returns a string for a supplied tuple.
Syntax: TUPLETOSTR( «Tuple» )
Technet Link: MDX TupleToStr Function




The query below convert the tuple Europe in the Group level of the Sales Territory hierarchy in the Sales Territory dimension to a string.
 
WITH
      MEMBER [Measures].[TupStr] AS
      TUPLETOSTR([Sales Territory].[Sales Territory].[Group].&[Europe])
SELECT
      {[Measures].[TupStr]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The query below converts the all tuples in the Reseller level in the Reseller Type hierarchy in the Reseller dimension to string.
 
WITH
      MEMBER [Measures].[TupStr] AS
      TUPLETOSTR([Reseller].[Reseller Type].CurrentMember)
SELECT
      {[Measures].[TupStr]} ON COLUMNS,
      {[Reseller].[Reseller Type].[Reseller]} ON ROWS
FROM
      [Adventure Works]
 
 

 
 

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