Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 3.31 KB

File metadata and controls

59 lines (48 loc) · 3.31 KB
title description ms.date ms.service ms.custom ms.topic ms.author ms.reviewer author
Attribute Element (XMLA) | Microsoft Docs
Learn how the Attribute element defines or filters a member in an attribute on which a parent Insert, Update, or Drop command performs.
01/05/2020
analysis-services
xmla
reference
kfollis
kfollis
kfollis

Attribute Element (XMLA)

Defines or filters a member in an attribute on which a parent Insert, Update, or Drop command performs.

Syntax

  
<Attributes>  
   ...  
   <Attribute>  
      <AttributeName>...</AttributeName>  
      <Keys>...</Keys>  
      <!-- The following elements are included only for attributes contained in the Attributes element of a parent Insert or Update command -->  
      <Name>...</Name>  
      <Translations>...</Translations>  
      <CustomRollup>...</CustomRollup>  
      <CustomRollupProperties>...</CustomRollupProperties>  
      <UnaryOperator>...</UnaryOperator>  
      <SkippedLevels>...</SkippedLevels>  
   </Attribute>  
   ...  
</Attributes>  

Element characteristics

Characteristic Description
Data type and length None
Default value None
Cardinality 1-1: Required element that occurs once and only once.

Element relationships

Relationship Element
Parent elements Attributes
Child elements See the table below.
Ancestor or Parent Child Element
Drop, Where AttributeName, Keys
Insert, Update AttributeName, CustomRollup, CustomRollupProperties, Keys, Name, SkippedLevels, Translations, UnaryOperator

Remarks

The Attribute element defines the attribute member that is inserted, updated, or deleted, respectively, by the Insert, Update, or Drop command. As these commands can operate only on one attribute member at a time, the Attributes collection of the Insert, Update, and Drop commands can contain only one Attribute element. However, the Attributes collection of the Where element for the Drop and Update commands can contain more than one Attribute element, so that you can filter the attributes to be dropped or updated in a write-enabled dimension.