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

# dimensionTotals()

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

Gets totals defined in the provided dimension

**Signature:**

```typescript
export declare function dimensionTotals(dim: IDimension): ITotal[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dim | [IDimension](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.idimension/index.md) | dimension to work with |

**Returns:**

[ITotal](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.itotal/index.md)[]

totals in the dimension or empty array if none
