Enum AggregationType
AggregationType
An enum that defines the aggregation types that can be set for a Field
.
To call an enum, you call its parent class, name, and property. For example,
DataStudioApp.AggregationType.AVG
.
Properties
Property | Type | Description |
AVG | Enum | Average. |
COUNT | Enum | Count. |
COUNT_DISTINCT | Enum | Count Distinct. |
MAX | Enum | Max. |
MIN | Enum | Min. |
SUM | Enum | Sum. |
AUTO | Enum | Auto. Use Auto for calculated fields which reference an aggregated field. |
Deprecated properties
Property | Type | Description |
NO_AGGREGATION | Enum | DEPRECATED: Use AUTO instead. No aggregation. |
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`AggregationType` is an enum used to define how data is aggregated within a [Field](/apps-script/reference/data-studio/field) in Data Studio."],["You can call an AggregationType enum through its parent class like so: `DataStudioApp.AggregationType.AVG`."],["Available aggregation types include `AVG`, `COUNT`, `COUNT_DISTINCT`, `MAX`, `MIN`, `SUM`, and `AUTO`, with `AUTO` recommended for calculated fields referencing an aggregated field."],["The `NO_AGGREGATION` enum is deprecated; use `AUTO` instead."]]],[]]