> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# MeasureAggregation

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: type-alias
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/execution/measure/index.ts

Simple measures created from facts can use these types of aggregations.

**Signature:**

```typescript
export type MeasureAggregation = "sum" | "count" | "approximate_count" | "avg" | "min" | "max" | "median" | "runsum";
```

## Remarks

Note the special approximate\_count aggregation. It translates to corresponding SQL function on backend if the underlying data source supports it. Otherwise the backend should fall back to classic exact count. Some backends are oblivious to this functionality completely - for them it's ok to perform the fallback already in SDK backend.
