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: StrToSet
Category: String
Description: The StrToSet returns specified by the supplied string.
Syntax: STRTOSET( «String Expression» )
Technet Link: MDX StrToSet Function




The query below returns a set of members from the Business Type level in the Reseller Type hierarchy in the Reseller dimension using the supplied string.
 

SELECT
      STRTOSET ('{[Reseller].[Reseller Type].[Business Type].Members}') ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
The query below returns a hierarchy of members from the Fiscal hierarchy using the StrToSet function along with the Hierarchize function.
 

SELECT
      HIERARCHIZE(STRTOSET('{[Date].[Fiscal].[August 2002], [Date].[Fiscal].[July 2002], [Date].[Fiscal].[FY 2002]}')) ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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