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

Members (String) (MDX)

Updated: 17 July 2006

Returns a member specified by a string expression.


Members(Member_Name) 

Member_Name

A valid string expression that specifies a member name.

The Members (String) function returns a single member whose name is specified. Typically, you use the Members (String) function with external functions, providing to the Members (String) function a string that identifies a member, and the Members (String) function returns the value for this specified member.

Example

The following example uses the Members (String) function to convert the specified string to a valid member, and then returns the default measure for the member specified in the string. The specified string is in single quotes. The default measure is the Reseller Sales Amount measure.

SELECT Members ('[Geography].[Geography].[Country].&[United States] ') ON 0
FROM [Adventure Works]

Release History

17 July 2006

Changed content:
  • Updated syntax and arguments to improve clarity.
  • Added updated examples.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft