PivotShowValuesSetting

PivotShowValuesSetting class

Represents the settings about showing values as when the ShowDataAs calculation is in use.

class PivotShowValuesSetting;

Properties

PropertyTypeDescription
showValuesAsPivotShowValuesAsTypeGets and sets how to show values of a data field in the pivot report.
calculationTypePivotFieldDataDisplayFormatRepresents how to show values of a data field in the pivot report.
baseFieldIndexnumberRepresents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.
baseItemPositionTypePivotItemPositionTypeRepresents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.
baseFieldNamestringReadonly. Gets caption of the pivot base field.
baseItemCaptionstringReadonly. Gets caption of the pivot item in the base field.
baseItemIndexnumberRepresents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.

Methods

MethodDescription
getShowValuesAs()@deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report.
setShowValuesAs(PivotShowValuesAsType)@deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report.
getCalculationType()@deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report.
setCalculationType(PivotFieldDataDisplayFormat)@deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report.
getBaseFieldIndex()@deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.
setBaseFieldIndex(number)@deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.
getBaseItemPositionType()@deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.
setBaseItemPositionType(PivotItemPositionType)@deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.
getBaseFieldName()@deprecated. Please use the ‘baseFieldName’ property instead. Gets caption of the pivot base field.
getBaseItemCaption()@deprecated. Please use the ‘baseItemCaption’ property instead. Gets caption of the pivot item in the base field.
getBaseItemIndex()@deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.
setBaseItemIndex(number)@deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.
isNull()Checks whether the implementation object is null.

showValuesAs

Gets and sets how to show values of a data field in the pivot report.

showValuesAs : PivotShowValuesAsType;

calculationType

Represents how to show values of a data field in the pivot report.

calculationType : PivotFieldDataDisplayFormat;

Remarks

NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.ShowValuesAs property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.

baseFieldIndex

Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.

baseFieldIndex : number;

baseItemPositionType

Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.

baseItemPositionType : PivotItemPositionType;

Remarks

NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.BaseItem property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.

baseFieldName

Readonly. Gets caption of the pivot base field.

baseFieldName : string;

baseItemCaption

Readonly. Gets caption of the pivot item in the base field.

baseItemCaption : string;

baseItemIndex

Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.

baseItemIndex : number;

Remarks

PivotShowValuesSetting.PreviousPivotItem (-1) for the preceding item, PivotShowValuesSetting.NextPivotItem (-2) for the succeeding item; non‑negative values denote the ordinal index of a specific pivot item.

getShowValuesAs()

@deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report.

getShowValuesAs() : PivotShowValuesAsType;

Returns

PivotShowValuesAsType

setShowValuesAs(PivotShowValuesAsType)

@deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report.

setShowValuesAs(value: PivotShowValuesAsType) : void;

Parameters:

ParameterTypeDescription
valuePivotShowValuesAsTypeThe value to set.

getCalculationType()

@deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report.

getCalculationType() : PivotFieldDataDisplayFormat;

Returns

PivotFieldDataDisplayFormat

Remarks

NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.ShowValuesAs property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.

setCalculationType(PivotFieldDataDisplayFormat)

@deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report.

setCalculationType(value: PivotFieldDataDisplayFormat) : void;

Parameters:

ParameterTypeDescription
valuePivotFieldDataDisplayFormatThe value to set.

Remarks

NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.ShowValuesAs property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.

getBaseFieldIndex()

@deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.

getBaseFieldIndex() : number;

setBaseFieldIndex(number)

@deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.

setBaseFieldIndex(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getBaseItemPositionType()

@deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.

getBaseItemPositionType() : PivotItemPositionType;

Returns

PivotItemPositionType

Remarks

NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.BaseItem property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.

setBaseItemPositionType(PivotItemPositionType)

@deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.

setBaseItemPositionType(value: PivotItemPositionType) : void;

Parameters:

ParameterTypeDescription
valuePivotItemPositionTypeThe value to set.

Remarks

NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.BaseItem property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.

getBaseFieldName()

@deprecated. Please use the ‘baseFieldName’ property instead. Gets caption of the pivot base field.

getBaseFieldName() : string;

getBaseItemCaption()

@deprecated. Please use the ‘baseItemCaption’ property instead. Gets caption of the pivot item in the base field.

getBaseItemCaption() : string;

getBaseItemIndex()

@deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.

getBaseItemIndex() : number;

Remarks

PivotShowValuesSetting.PreviousPivotItem (-1) for the preceding item, PivotShowValuesSetting.NextPivotItem (-2) for the succeeding item; non‑negative values denote the ordinal index of a specific pivot item.

setBaseItemIndex(number)

@deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.

setBaseItemIndex(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

Remarks

PivotShowValuesSetting.PreviousPivotItem (-1) for the preceding item, PivotShowValuesSetting.NextPivotItem (-2) for the succeeding item; non‑negative values denote the ordinal index of a specific pivot item.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;