Calculated Item.When the object is serialized out as xml, its qualified name is x:calculatedItem.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
The following table lists the possible child types:
[ISO/IEC 29500-1 1st Edition]
184.108.40.206 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.
extLst (Future Feature Data Storage Area)
pivotArea (Pivot Area)
field (Field Index)
Specifies the index of the pivotField with which this calculated item is associated.
The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.
formula (Calculated Item Formula)
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 calculatedItems:
For more information about formulas see §18.17 in Formulas. For more information about defined names see §18.2.6 in Workbook.
The possible values for this attribute are defined by the ST_Xstring simple type (§220.127.116.11).
[Note: The W3C XML Schema definition of this element’s content model (CT_CalculatedItem) is located in §A.2. end note]
© ISO/IEC29500: 2008.