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: StrToValue
Category: String
Description: The StrToValue function converts string values to numeric values for the supplied expression.
Syntax: STRTOVALUE( «String Expression» )
Technet Link: MDX StrToValue Function

The following query returns a value for the Total Children property for Customers in the Customer Geography hierarchy in the Customer dimension.
      MEMBER [Measures].[TotChilden] AS
      STRTOVALUE([Customer].[Customer Geography].CurrentMember.Properties ('Total Children'))
      {[Measures].[TotChilden]} ON COLUMNS,
      {[Customer].[Customer Geography].[Customer].Members} ON ROWS
      [Adventure Works]


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