Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
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
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[],["`AggregationType` is an enum defining aggregation options for a `Field`. It includes properties like `AVG`, `COUNT`, `COUNT_DISTINCT`, `MAX`, `MIN`, `SUM`, and `AUTO`. These represent the types of calculations that can be applied to a field's data. `AUTO` is used for calculated fields that reference aggregated data. The `NO_AGGREGATION` property is deprecated and `AUTO` should be used instead. Each enum can be called by its parent class, name, and property.\n"]]