Interface IXLPivotValue
A pivot value field, it is basically a specification of how to determine and format values from source to display in the pivot table.
public interface IXLPivotValue
- Extension Methods
Properties
BaseFieldName
Specifies the index to the base field when the ShowDataAs calculation is in use. Instead of base item, previous or next value can be used through CalculationItem
string BaseFieldName { get; set; }
Property Value
- string
The name of the column of the relevant base field.
Examples
Show values as a percent of a specific value of a different field, e.g. as a % of units sold from Q1 (quarts is a base field and Q1 is a base item).
Remarks
Used only if the value should be showed Show Values As in the value field settings.
BaseItemValue
The value of a base item to calculate a value to show in the pivot table. The base item is selected from values of a base field.
XLCellValue BaseItemValue { get; set; }
Property Value
- XLCellValue
The value of the referenced base field item.
Examples
Show values as a percent of a specific value of a different field, e.g. as a % of units sold from Q1 (quarts is a base field and Q1 is a base item).
Remarks
Used only if the value should be showed Show Values As in the value field settings.
Calculation
XLPivotCalculation Calculation { get; set; }
Property Value
CalculationItem
XLPivotCalculationItem CalculationItem { get; set; }
Property Value
CustomName
string CustomName { get; set; }
Property Value
NumberFormat
IXLPivotValueFormat NumberFormat { get; }
Property Value
SourceName
string SourceName { get; }
Property Value
SummaryFormula
XLPivotSummary SummaryFormula { get; set; }
Property Value
Methods
SetBaseFieldName(string)
IXLPivotValue SetBaseFieldName(string value)
Parameters
valuestring
Returns
SetBaseItemValue(XLCellValue)
IXLPivotValue SetBaseItemValue(XLCellValue value)
Parameters
valueXLCellValue
Returns
SetCalculation(XLPivotCalculation)
IXLPivotValue SetCalculation(XLPivotCalculation value)
Parameters
valueXLPivotCalculation
Returns
SetCalculationItem(XLPivotCalculationItem)
IXLPivotValue SetCalculationItem(XLPivotCalculationItem value)
Parameters
valueXLPivotCalculationItem
Returns
SetSummaryFormula(XLPivotSummary)
IXLPivotValue SetSummaryFormula(XLPivotSummary value)
Parameters
valueXLPivotSummary
Returns
ShowAsDifferenceFrom(string)
IXLPivotValueCombination ShowAsDifferenceFrom(string fieldSourceName)
Parameters
fieldSourceNamestring
Returns
ShowAsIndex()
IXLPivotValue ShowAsIndex()
Returns
ShowAsNormal()
IXLPivotValue ShowAsNormal()
Returns
ShowAsPercentageDifferenceFrom(string)
IXLPivotValueCombination ShowAsPercentageDifferenceFrom(string fieldSourceName)
Parameters
fieldSourceNamestring
Returns
ShowAsPercentageFrom(string)
IXLPivotValueCombination ShowAsPercentageFrom(string fieldSourceName)
Parameters
fieldSourceNamestring
Returns
ShowAsPercentageOfColumn()
IXLPivotValue ShowAsPercentageOfColumn()
Returns
ShowAsPercentageOfRow()
IXLPivotValue ShowAsPercentageOfRow()
Returns
ShowAsPercentageOfTotal()
IXLPivotValue ShowAsPercentageOfTotal()
Returns
ShowAsRunningTotalIn(string)
IXLPivotValue ShowAsRunningTotalIn(string fieldSourceName)
Parameters
fieldSourceNamestring