Returns the value of the attribute that is associated with
the role whose name is specified by "string" within the specified
context. The second argument is optional only in a number of limited circumstances,
where it can be derived from other context. Applications can be made portable
across different data sources and models by accessing attributes by role,
rather than by query item ID. (For dimensionally modelled relational data
sources, assignment of roles is the modeller's responsibility.) Intrinsic
roles that are defined for members of all data source types include: '_businessKey',
'_memberCaption', '_memberDescription', '_memberUniqueName'.
Syntax
roleValue ( string [ , member
| set_exp ] )
Example
roleValue ( '_memberCaption',
[Sales].[Product].[Product].[Product line]->[all].[1] )
Result: Camping Equipment