Export (0) Print
Expand All
Avg
IIf
Lag
Max
Min
Mtd
Qtd
Sum
Var
Wtd
Ytd
Expand Minimize

NameToSet (MDX)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns a set that contains the member specified by a Multidimensional Expressions (MDX)–formatted string.

NameToSet(Member_Name) 

Member_Name

A valid string expression that represents the name of a member.

If the specified member name exists, the NameToSet function returns a set containing that member. Otherwise, the function returns an empty set.

Note Note

The specified member name must only be a member name; it cannot be a member expression. To use a member expression, see StrToSet (MDX).

Example

The following returns the default measure value for the specified member name.

SELECT NameToSet('[Date].[Calendar].[July 2001]') ON 0
FROM [Adventure Works]
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft