<calculatedItem>
(Calculated Item)
Represents an item within a PivotTable field that uses a formula . The formula is specified in the <formula>
attribute.
Calculations and options available for a PivotTable depend on whether the source data came from an OLAP database or another type of database. This complex type applies to non-OLAP external data or on worksheet data. See <calculatedMember >
for information on calculations on OLAP data sources.
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
Attributes |
Description |
---|---|
|
Specifies the index of the The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
|
Specifies the formula of the calculated item. In formulas you create for calculated items, you can use operators and expressions as you do in other worksheet formulas. You can use constants and refer to data from the PivotTable, but you cannot use cell references or defined names. You cannot use worksheet functions that require cell references or defined names as arguments, and you cannot use array functions. Further behaviors and restrictions apply to formulas for
For more information about formulas see §3.17 in Formulas. For more information about defined names see §3.2.6 in Workbook. The possible values for this attribute are defined by the ST_Xstring simple type (§3.18.96). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_CalculatedItem">
<sequence>
<element name="pivotArea" type="CT_PivotArea"/>
<element name="extLst" minOccurs="0" type="CT_ExtensionList"/>
</sequence>
<attribute name="field" type="xsd:unsignedInt" use="optional"/>
<attribute name="formula" type="ST_Xstring"/>
</complexType>