Table of Contents

Class ExcelPivotTableCalculatedData

Namespace
OfficeOpenXml.Table.PivotTable
Assembly
EPPlus.dll

Represents a selection of a row or column field to retreive the calculated value from a pivot table.

public class ExcelPivotTableCalculatedData
Inheritance
ExcelPivotTableCalculatedData
Inherited Members

Methods

GetValue(int)

public object GetValue(int dataFieldIndex = 0)

Parameters

dataFieldIndex int

The index for the date field in the DataFields collection

Returns

object

The value from the pivot table. If data field does not exist of the selected fields does not match any part of the pivot table a #REF! error is retuned.

GetValue(string)

public object GetValue(string dataFieldName)

Parameters

dataFieldName string

Returns

object

SelectField(string, object)

Specifies which value to use for a field.

public ExcelPivotTableCalculatedData SelectField(string fieldName, object value)

Parameters

fieldName string

The name of the field

value object

The value

Returns

ExcelPivotTableCalculatedData

A new ExcelPivotTableCalculatedData to select other row or column field values or fetch the calulated value in a fluent way.

See Also

SelectField(string, object, eSubTotalFunctions)

Specifies which value to use for a field.

public ExcelPivotTableCalculatedData SelectField(string fieldName, object value, eSubTotalFunctions subtotalFunction)

Parameters

fieldName string

The name of the field

value object

The value

subtotalFunction eSubTotalFunctions

Returns

ExcelPivotTableCalculatedData