[[["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."],[[["\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,["AggregationType\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\nProperties\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\nDeprecated properties\n\n| Property | Type | Description |\n|------------------|--------|-------------------------------------------------|\n| `NO_AGGREGATION` | `Enum` | DEPRECATED: Use `AUTO` instead. No aggregation. |"]]