MEMBERCNAME

This function returns the caption of an element.

Syntax

=MEMBERCNAME("data_connection","cube", "dimension", "element_name")

Example

=MEMBERCNAME("BestPracticesOLAP","Sales","[Product]","[Car Tires All Season]")

Multiselect

MEMBERCNAME supports multiselect. That is, you can use it to return the captions of multiple elements that are stored in MLS-XML.

If you use MEMBERCNAME in a select element action you can enable multiselection in the Inputs/Options section of the Define Action dialog box.

Example

For example, a report variable called rv_multi contains this MLS-XML:
<?xml version="1.0" encoding="utf-16"?>
<MultiSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Hierarchy>[Period]</Hierarchy>
  <AggregationFunction>Sum</AggregationFunction>
  <StructureSelection>
    <Member>
      <MemberUName>[period].[all years].[2016]</MemberUName>
    </Member>
    <Member>
      <MemberUName>[period].[all years].[2017]</MemberUName>
    </Member>
  </StructureSelection>
</MultiSelect>
This MEMBERCNAME formula returns: 2016, 2017:

=MEMBERCNAME("BestPracticesOLAP","analysis","[period]",ReportVariables.rv_multi.Text)