Enum AggregationType
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
AggregationType
อาร์เรย์แบบจำกัดที่กำหนดประเภทการรวมที่สามารถตั้งค่าสําหรับ Field
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eAggregationType\u003c/code\u003e is an enum used to define how data is aggregated within a \u003ca href=\"/apps-script/reference/data-studio/field\"\u003eField\u003c/a\u003e in Data Studio.\u003c/p\u003e\n"],["\u003cp\u003eYou can call an AggregationType enum through its parent class like so: \u003ccode\u003eDataStudioApp.AggregationType.AVG\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAvailable aggregation types include \u003ccode\u003eAVG\u003c/code\u003e, \u003ccode\u003eCOUNT\u003c/code\u003e, \u003ccode\u003eCOUNT_DISTINCT\u003c/code\u003e, \u003ccode\u003eMAX\u003c/code\u003e, \u003ccode\u003eMIN\u003c/code\u003e, \u003ccode\u003eSUM\u003c/code\u003e, and \u003ccode\u003eAUTO\u003c/code\u003e, with \u003ccode\u003eAUTO\u003c/code\u003e recommended for calculated fields referencing an aggregated field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNO_AGGREGATION\u003c/code\u003e enum is deprecated; use \u003ccode\u003eAUTO\u003c/code\u003e instead.\u003c/p\u003e\n"]]],["`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"],null,["# Enum AggregationType\n\nAggregationType\n\nAn enum that defines the aggregation types that can be set for a [Field](/apps-script/reference/data-studio/field).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nDataStudioApp.AggregationType.AVG`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|---------------------------------------------------------------------------|\n| `AVG` | `Enum` | Average. |\n| `COUNT` | `Enum` | Count. |\n| `COUNT_DISTINCT` | `Enum` | Count Distinct. |\n| `MAX` | `Enum` | Max. |\n| `MIN` | `Enum` | Min. |\n| `SUM` | `Enum` | Sum. |\n| `AUTO` | `Enum` | Auto. Use Auto for calculated fields which reference an aggregated field. |\n\n### Deprecated properties\n\n| Property | Type | Description |\n|------------------|--------|-------------------------------------------------|\n| `NO_AGGREGATION` | `Enum` | DEPRECATED: Use `AUTO` instead. No aggregation. |"]]