Enum PivotTableSummarizeFunction

  • PivotTableSummarizeFunction is an enumeration of functions used to summarize data within Google Sheets pivot tables.

  • It provides access to common aggregation functions like SUM, AVERAGE, COUNT, MAX, MIN, and more for summarizing pivot table data.

  • To use a function, call it using the parent class, name, and property, such as SpreadsheetApp.PivotTableSummarizeFunction.SUM.

  • Includes a CUSTOM property for using custom functions within calculated fields in pivot tables.

PivotTableSummarizeFunction

An enumeration of functions that summarize pivot table data.

To call an enum, you call its parent class, name, and property. For example, SpreadsheetApp.PivotTableSummarizeFunction.CUSTOM.

Properties

PropertyTypeDescription
CUSTOMEnumA custom function, this value is only valid for calculated fields.
SUMEnumThe SUM function
COUNTAEnumThe COUNTA function
COUNTEnumThe COUNT function
COUNTUNIQUEEnumThe COUNTUNIQUE function
AVERAGEEnumThe AVERAGE function
MAXEnumThe MAX function
MINEnumThe MIN function
MEDIANEnumThe MEDIAN function
PRODUCTEnumThe PRODUCT function
STDEVEnumThe STDEV function
STDEVPEnumThe STDEVP function
VAREnumThe VAR function
VARPEnumThe VARP function