MMEMBER.ANAME
MMEMBER.ANAME displays a specified attribute of multiple elements. You select the elements in the Select Element dialog.
To open the Select Element dialog, double-click the cell which contains the formula.
To select multiple elements click Select Elements dialog.
in the toolbar of theSee Choosing slice elements in Formula and Ad-hoc reports.
The elements which you select are added to an array. The array can be
stored in the formula, or in a specified cell. The array is displayed as an
aggregated element with the format:[Dimension].[attribute 1, attribute
2...]
If you have an ad-hoc report which displays an attribute of multiple elements, MMEMBER.ANAME is used if you convert the ad-hoc report to a formula report. You use MEMBER.ANAME if the report displays the attributes of individual elements.
See MEMBER.ANAME.
Syntax
=MMEMBER.ANAME("Alias", "Cube", "Dimension", "Attribute Name",
"Element Selection", "Aggregated Element")
The Alias and Cube arguments can be the cell references of cells which contain the alias and cube names.
The Element Selection argument can be the unique names of the elements, separated by commas, or an empty string ("").
The Aggregated Element argument can be a cell reference or an empty string. If you specify an empty string, the array is incorporated in the formula. If you specify a cell reference, the array is created in the specified cell.
Examples
This example has an element selection of two elements and specifies a cell reference for the Aggregated Element argument. That is, the array is stored in the specified cell:
("Best Practices
OLAP","Sales","[PRODUCT]","ATT2_German","[Product].[All Tires].[Car Tires
Summer],[Product].[All Tires].[Car Tires Winter]",$D$2)
- Double-click #REF.
- Click Select Element dialog. in the tool bar of the
- Select Sommerreifen and Winterreifen and click .
- The cell which contains the formula displays Sommerreifen, Winterreifen.
- Cell D2 displays
[Product].[Sommerreifen,Winterreifen]
- Cell D2 displays Sommerreifen, Winterreifen, Transporter Reifen.
- The formula
displays:
=MMEMBER.ANAME("Best Practices OLAP","Sales","[PRODUCT]","ATT2_German","[PRODUCT].[All Tires].[Car Tires Summer],[PRODUCT].[All Tires].[Car Tires Winter],[PRODUCT].[All Tires].[Commercial (Van Tires)]",$D$2)
This example specifies an empty string as the value of the Aggregated Element argument. That is, the array is stored within the formula:
=MMEMBER.ANAME("Best Practices
OLAP","Sales","[PRODUCT]","ATT2_German","[PRODUCT].[All Tires].[Car Tires
Summer],[PRODUCT].[All Tires].[Car Tires Winter]","")
As you select elements in the Select Element dialog, they are added to the array in the formula. For example, if you select Sommerreifen, Winterreifen and Off-Road Reiffen, the formula displays:
=MMEMBER.ANAME("Best Practices
OLAP","Sales","[PRODUCT]","ATT2_German","[PRODUCT].[All Tires].[Car Tires
Summer],[PRODUCT].[All Tires].[Car Tires Winter],[PRODUCT].[All Tires].[SUV
(4x4)]","[PRODUCT].[Sommerreifen,Winterreifen,Off-Road Reifen]")
This example uses an empty string as the value of the Element Selection argument:
=MMEMBER.ANAME($B$4,$B$5,"[PRODUCT]","ATT2_German","""",$D$2)
The cell displays #REF.
If you select Sommerreifen and Winterreifen in the Select Element dialog:
- Cell D2 displays [Product].[Sommerreifen,Winterreifen]
- The formula displays:
=MMEMBER.ANAME($B$4,$B$5,"[PRODUCT]","ATT2_German","[PRODUCT].[All Tires].[Car Tires Summer],[PRODUCT].[All Tires].[Car Tires Winter]",$D$2)