Enum AggregationType
匯總類型列舉項目,定義可為 Field
設定的匯總類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
DataStudioApp.AggregationType.AVG
。
屬性
屬性 | 類型 | 說明 |
AVG | Enum | 平均。 |
COUNT | Enum | 計數。 |
COUNT_DISTINCT | Enum | 不重複值的計數。 |
MAX | Enum | 最新 |
MIN | Enum | 最舊 |
SUM | Enum | 總和。 |
AUTO | Enum | 自動。針對參照匯總欄位的計算結果欄位,請使用「自動」。 |
已淘汰的屬性
屬性 | 類型 | 說明 |
NO_AGGREGATION | Enum | 已淘汰:請改用 AUTO 。不匯總。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間:2024-12-02 (世界標準時間)。"],[[["`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"]]