[Table of Contents] [docx version]
SpreadsheetML Reference Material - Table of Contents
Represents an OLAP sheet data set or tuple set. The set is defined by a Multidimensional Expressions (MDX) query that specifies criteria for the dimension members that belong to the set.
For example, the following MDX expression defines the set for the 10 salespersons with the lowest sales:
BottomCount([Salesperson].[Salesperson Name].Members,10,[Measures].[Sales])
The MDX expression is specified in the setDefinition attribute.
Parent Elements |
sets (§3.10.1.89) |
Child Elements |
Subclause |
sortByTuple (Sort By Tuple) |
§3.10.1.91 |
tpls (Tuples) |
§3.10.1.93 |
Attributes |
Description |
count (Number of Tuples) |
Specifies the number of tuples in the set.
The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
maxRank (Maximum Rank Requested) |
Specifies the largest rank entry the user has requested.
The possible values for this attribute are defined by the XML Schema int datatype. |
queryFailed (Query Failed) |
Specifies a boolean value that indicates whether querying on this set failed.
A value of on, 1, or true indicates a query against this set failed.
A value of off, 0, or false indicates a query against this set succeeded.
The possible values for this attribute are defined by the XML Schema boolean datatype. |
setDefinition (MDX Set Definition) |
Specifies the Multidimensional Expressions (MDX) set definition.
[Note: Data connectivity can use a number of different technologies. One example of potential values stored in this attribute can be found at: http://msdn2.microsoft.com/en-us/library/ms145595.aspx end note]
The possible values for this attribute are defined by the ST_Xstring simple type (§3.18.96). |
sortType (Set Sort Order) |
Specifies the sort order of the set.
The possible values for this attribute are defined by the ST_SortType simple type (§3.18.76). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Set">
<sequence>
<element name="tpls" minOccurs="0" maxOccurs="unbounded" type="CT_Tuples"/>
<element name="sortByTuple" minOccurs="0" type="CT_Tuples"/>
</sequence>
<attribute name="count" type="xsd:unsignedInt"/>
<attribute name="maxRank" use="required" type="xsd:int"/>
<attribute name="setDefinition" use="required" type="ST_Xstring"/>
<attribute name="sortType" type="ST_SortType" default="none"/>
<attribute name="queryFailed" type="xsd:boolean" default="false"/>
</complexType>