[Table of Contents] [docx version]
SpreadsheetML Reference Material - Table of Contents
This element specifies the top N (percent or number of items) to filter by.
[Example: This example filters the first column by the top 10 percent of the values in that column. For all cells in the column whose value falls outside the top 10 percent of the value in that column, the rows corresponding to those cells are hidden from the view. In this example, there are 6 cells in the range, containing 1, 2, 3, 4, 5, 6 repsectively.
<filterColumn colId="0">
<top10 percent="1" val="5" filterVal="6"/>
</filterColumn
end example]
Parent Elements |
filterColumn (§3.3.2.7) |
Attributes |
Description |
filterVal (Filter Value) |
The actual cell value in the range which is used to perform the comparison for this filter.
The possible values for this attribute are defined by the XML Schema double datatype. |
percent (Filter by Percent) |
Flag indicating whether or not to filter by percent value of the column. A false value filters by number of items.
The possible values for this attribute are defined by the XML Schema boolean datatype. |
top (Top) |
Flag indicating whether or not to filter by top order. A false value filters by bottom order.
The possible values for this attribute are defined by the XML Schema boolean datatype. |
val (Top or Bottom Value) |
Top or bottom value to use as the filter criteria. For example "Filter by Top 10 Percent" or "Filter by Top 5 Items".
The possible values for this attribute are defined by the XML Schema double datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Top10">
<attribute name="top" type="xsd:boolean" use="optional" default="true"/>
<attribute name="percent" type="xsd:boolean" use="optional" default="false"/>
<attribute name="val" type="xsd:double" use="required"/>
<attribute name="filterVal" type="xsd:double" use="optional"/>
</complexType>