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)
Get the value for the current field selection. SelectField(string, object) SelectField(string, object, eSubTotalFunctions)
public object GetValue(int dataFieldIndex = 0)
Parameters
dataFieldIndexintThe 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)
Get the value for the current field selection. SelectField(string, object) SelectField(string, object, eSubTotalFunctions)
public object GetValue(string dataFieldName)
Parameters
dataFieldNamestring
Returns
SelectField(string, object)
Specifies which value to use for a field.
public ExcelPivotTableCalculatedData SelectField(string fieldName, object value)
Parameters
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
fieldNamestringThe name of the field
valueobjectThe value
subtotalFunctioneSubTotalFunctions