Enum PivotTableSummarizeFunction
Stay organized with collections
Save and categorize content based on your preferences.
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
Property | Type | Description |
CUSTOM | Enum | A custom function, this value is only valid for calculated fields. |
SUM | Enum | The SUM function |
COUNTA | Enum | The COUNTA function |
COUNT | Enum | The COUNT function |
COUNTUNIQUE | Enum | The COUNTUNIQUE function |
AVERAGE | Enum | The AVERAGE function |
MAX | Enum | The MAX function |
MIN | Enum | The MIN function |
MEDIAN | Enum | The MEDIAN function |
PRODUCT | Enum | The PRODUCT function |
STDEV | Enum | The STDEV function |
STDEVP | Enum | The STDEVP function |
VAR | Enum | The VAR function |
VARP | Enum | The VARP function |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["\u003cp\u003e\u003ccode\u003ePivotTableSummarizeFunction\u003c/code\u003e is an enumeration of functions used to summarize data within Google Sheets pivot tables.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to common aggregation functions like \u003ccode\u003eSUM\u003c/code\u003e, \u003ccode\u003eAVERAGE\u003c/code\u003e, \u003ccode\u003eCOUNT\u003c/code\u003e, \u003ccode\u003eMAX\u003c/code\u003e, \u003ccode\u003eMIN\u003c/code\u003e, and more for summarizing pivot table data.\u003c/p\u003e\n"],["\u003cp\u003eTo use a function, call it using the parent class, name, and property, such as \u003ccode\u003eSpreadsheetApp.PivotTableSummarizeFunction.SUM\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIncludes a \u003ccode\u003eCUSTOM\u003c/code\u003e property for using custom functions within calculated fields in pivot tables.\u003c/p\u003e\n"]]],["`PivotTableSummarizeFunction` enumerates functions for summarizing pivot table data. These functions, accessed via `SpreadsheetApp.PivotTableSummarizeFunction`, include: `CUSTOM` (for calculated fields), `SUM`, `COUNTA`, `COUNT`, `COUNTUNIQUE`, `AVERAGE`, `MAX`, `MIN`, `MEDIAN`, `PRODUCT`, `STDEV`, `STDEVP`, `VAR`, and `VARP`. Each function corresponds to a specific Google Sheets formula, allowing for diverse data aggregation within pivot tables. Each property's type is `Enum`.\n"],null,["# Enum PivotTableSummarizeFunction\n\nPivotTableSummarizeFunction\n\nAn enumeration of functions that summarize pivot table data.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.PivotTableSummarizeFunction.CUSTOM`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|----------------------------------------------------------------------------|\n| `CUSTOM` | `Enum` | A custom function, this value is only valid for calculated fields. |\n| `SUM` | `Enum` | The [SUM](https://support.google.com/docs/answer/3093669) function |\n| `COUNTA` | `Enum` | The [COUNTA](https://support.google.com/docs/answer/3093991) function |\n| `COUNT` | `Enum` | The [COUNT](https://support.google.com/docs/answer/3093620) function |\n| `COUNTUNIQUE` | `Enum` | The [COUNTUNIQUE](https://support.google.com/docs/answer/3093405) function |\n| `AVERAGE` | `Enum` | The [AVERAGE](https://support.google.com/docs/answer/3093615) function |\n| `MAX` | `Enum` | The [MAX](https://support.google.com/docs/answer/3094013) function |\n| `MIN` | `Enum` | The [MIN](https://support.google.com/docs/answer/3094017) function |\n| `MEDIAN` | `Enum` | The [MEDIAN](https://support.google.com/docs/answer/3094025) function |\n| `PRODUCT` | `Enum` | The [PRODUCT](https://support.google.com/docs/answer/3093502) function |\n| `STDEV` | `Enum` | The [STDEV](https://support.google.com/docs/answer/3094054) function |\n| `STDEVP` | `Enum` | The [STDEVP](https://support.google.com/docs/answer/3094105) function |\n| `VAR` | `Enum` | The [VAR](https://support.google.com/docs/answer/3094063) function |\n| `VARP` | `Enum` | The [VARP](https://support.google.com/docs/answer/3094113) function |"]]