Enum AggregationType

  • AggregationType is an enum used to define how data is aggregated within a 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.

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

PropertyTypeDescription
AVGEnumAverage.
COUNTEnumCount.
COUNT_DISTINCTEnumCount Distinct.
MAXEnumMax.
MINEnumMin.
SUMEnumSum.
AUTOEnumAuto. Use Auto for calculated fields which reference an aggregated field.