MEMBERCNAME

Denne funksjonen returnerer tittelen til et element.

Syntaks

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

Eksempel

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

Multiselect

MEMBERCNAME støtter multiselect. Det vil si at du kan bruke det for å returnere titlene til flere elementer som lagres i MLS-XML.

Hvis du bruker MEMBERCNAME i en velg element-handling, kan du aktivere multiselect i Inndata/Utdata-delen i dialogboksen Definer handling.

Eksempel

For eksempel inneholder en rapportvariabel som heter rv_multi denne 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>
Denne MEMBERCNAME-formelen returnerer: 2016, 2017:

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