Enum AggregationType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
AggregationType is an enum in Apps Script that defines aggregation types for a Field.
You access enum values through its parent class, name, and property, like
DataStudioApp.AggregationType.AVG.Available aggregation types include AVG, COUNT, COUNT_DISTINCT, MAX, MIN, SUM, and AUTO.
The
AUTOproperty is used for calculated fields referencing an aggregated field.The
NO_AGGREGATIONproperty is deprecated and should be replaced withAUTO.
An enum that defines the aggregation types that can be set for aField.
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: UseAUTO instead. No aggregation. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.