Enum AggregationType
Aggregationstyp
Ein Enum, das die Aggregationstypen definiert, die für eine Field
festgelegt werden können.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
DataStudioApp.AggregationType.AVG
.
Attribute
Attribut | Typ | Beschreibung |
AVG | Enum | Durchschnittlich. |
COUNT | Enum | Zählen. |
COUNT_DISTINCT | Enum | „Einzeln zählen“ |
MAX | Enum | Max. |
MIN | Enum | Min. |
SUM | Enum | Summe: |
AUTO | Enum | Automatisch. Verwenden Sie „Automatisch“ für berechnete Felder, die auf ein aggregiertes Feld verweisen. |
Eingestellte Properties
Attribut | Typ | Beschreibung |
NO_AGGREGATION | Enum | VERWORFEN: Verwenden Sie stattdessen AUTO . Keine Aggregation. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-02 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-12-02 (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."]]],["`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"]]