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 。无汇总。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):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"]]