MEMBERCNAME

Denne funktion returnerer titelteksten for et element.

Syntaks

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

Eksempel

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

Multiselect

MEMBERCNAME understøtter Multiselect. Det vil sige, at du kan bruge det til at returnere titelteksterne for flere elementer, der er gemt i MLS-XML.

Hvis du bruger MEMBERCNAME i en vælg element-handling, kan du aktivere multiselektion i afsnittet Input/indstillinger i dialogboksen Definer handling.

Eksempel

For eksempel indeholder en rapportvariabel kaldet 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-formel returnerer: 2016, 2017:

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