Compartilhar via


2.2.4.2.2.20.10 MeasureGroupBinding

The MeasureGroupBinding complex type represents a binding to a MeasureGroup.

   <xsd:complexType name="MeasureGroupBinding">
     <xsd:complexContent>
       <xsd:extension base="Binding">
         <xsd:all>
           <xsd:element name="DataSourceID" type="xsd:string"/>
           <xsd:element name="CubeID" type="xsd:string"/>
           <xsd:element name="MeasureGroupID" type="xsd:string"/>
           <xsd:element name="Persistence" minOccurs="0">
             <xsd:simpleType>
               <xsd:restriction base="xsd:string" >
                 <xsd:enumeration value="NotPersisted" />
                 <xsd:enumeration value="Metadata" />
                 <xsd:enumeration value="All" />
               </xsd:restriction>
             </xsd:simpleType>
           </xsd:element>
           <xsd:element name="RefreshPolicy" minOccurs="0">
             <xsd:simpleType>
               <xsd:restriction base="xsd:string" >
                 <xsd:enumeration value="ByQuery" />
                 <xsd:enumeration value="ByInterval" />
               </xsd:restriction>
             </xsd:simpleType>
           </xsd:element>
           <xsd:element name="RefreshInterval"  type="xsd:duration" minOccurs="0" />
           <xsd:element name="Filter" type="xsd:string" minOccurs="0"/>
         </xsd:all>
       </xsd:extension >
     </xsd:complexContent>
   </xsd:complexType>

Element

Read-Only

Default value

Description

DataSourceID

[Required]

The ID of the DataSource.

CubeID

[Required]

The ID of the Cube.

MeasureGroupID

[Required]

The ID of the MeasureGroup.

Persistence

"NotPersisted"

Determines which parts of the bound source data are dynamic and are checked for updates using the frequency that is specified by the RefreshPolicy element. Enumeration values are as follows:

  • NotPersisted - Source metadata, members, and data are all dynamic.

  • Metadata - Source metadata is static, but members and data are dynamic.

  • All – Source metadata, members, and data are all static.

RefreshPolicy

Empty

Determines how often the dynamic part of the dimension or measure group (as specified by the Persistence element) is checked for changes. Enumeration values are as follows:

  • ByQuery - Every query checks to determine whether the source data has changed.

  • ByInterval - Source data is checked for changes only at the interval that is specified by the RefreshInterval element.

RefreshInterval

-1 second

A duration that specifies the interval at which the dynamic part of the dimension or measure group is refreshed. The value -1 second is interpreted to mean infinite.

Filter

Empty

An MDX expression that specifies how to filter the source data.