NameToSet (MDX)


Updated: March 2, 2016

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


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.

System_CAPS_ICON_note.jpg 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).

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

SELECT NameToSet('[Date].[Calendar].[July 2001]') ON 0  
FROM [Adventure Works]  

MDX Function Reference (MDX)

Community Additions