Axes Element
TOC
Collapse the table of content
Expand the table of content

Axes Element (XMLA)

 

Applies To: SQL Server 2016 Preview

Contains a collection of Axis elements representing axis data contained by a root element that uses the MDDataSet data type.

  
<root xmlns="urn:schemas-microsoft-com:xml-analysis:mddataset">  
   ...  
   <Axes>  
      <Axis>...</Axis>  
   </Axes>  
   ...  
</root>  

CharacteristicDescription
Data type and lengthAny
Default valueNone
Cardinality1-1: Required element that occurs once and only once.
RelationshipElement
Parent elementsroot
Child elementsAxis

Under the Axes element, the Axis elements are listed in the order that they occur in the dataset, starting at zero. The AxisFormat XMLA property setting determines how Axis elements are formatted. For more information about the AxisFormat property, see Supported XMLA Properties (XMLA).

An axis represents a set of tuples, in which all tuples in the set have the same dimensionality. A set can be represented in different ways with different advantages. For example, the following set of four tuples can be represented as a collection of two-dimensional tuples or a Cartesian product of two one-dimensional sets.

1999199920002000
ActualBudgetActualBudget

This set of tuples can be represented either as a collection of two-dimensional tuples:

{ ( 1999, Actual ), ( 1999, Budget ), ( 2000, Actual ), ( 2000, Budget ) }  

This set can also be represented as a Cartesian product of two one-dimensional sets:

{ 1999, 2000 } x { Actual, Budget }  

The first representation, two-dimensional tuples, is simpler for client tools to use. The second representation, a Cartesian product of one-dimensional sets, uses less space and preserves the multidimensional nature of the set.

The following table lists operations that can be used to define and characterize the structure and members of an axis.

OperationDescription
MemberThe smallest unit of an axis representing the member of a dimension hierarchy.
MembersA collection of Member objects from the same dimension hierarchy.
TupleA collection of members from different dimension hierarchies.
TuplesA collection of Tuple objects with the same dimensionality.
UnionA union of sets.
CrossJoinA Cartesian product of sets.

These operations translate the two-dimensional tuples and the Cartesian product of one-dimensional sets as follows.

Tuples (  
   Tuple( Member(1999), Member(Actual) ),  
   Tuple( Member(1999), Member(Budget) ),  
   Tuple( Member(2000), Member(Actual) ),  
   Tuple( Member(2000), Member(Budget) )  

CrossProduct (  
   Members( Member(1999), Member(2000) ),  
   Members( Member(Actual), Member(Budget) )  

A client can use the AxisFormat property to request a specific representation.

MDDataSet Data Type (XMLA)
Properties (XMLA)

Community Additions

ADD
Show:
© 2016 Microsoft