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

# defaultDimensionsGenerator()

- 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/executionDefinition/factory.ts

Default dimension generator for execution definition behaves as follows:

**Signature:**

```typescript
export declare function defaultDimensionsGenerator(definition: IExecutionDefinition): IDimension[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| definition | [IExecutionDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexecutiondefinition/index.md) | execution definition to get dims for |

**Returns:**

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

## Remarks

- If the definition was created WITHOUT 'buckets', then:  - If there are no measures specified, then single dimension will be returned and will contain all attributes  - If there are measures, then two dimensions will be returned; measureGroup will be in the first dimension  and all attributes in the second dimension

If the definition was created WITH 'buckets' then:  - If there is just one bucket and it contains only attributes, then single dimension with all attributes will be returned  - If there is just one bucket and it contains both attributes and measures, then two dimensions will be returned:  measureGroup will be in first dimension, all other attributes in the second dimension  - If there are multiple buckets, then all attributes from first bucket will be in first dimension and all attributes  from other buckets in the second dimension. If the first bucket contains measure(s), then the MeasureGroup will  be in first dimension. Otherwise it will be in second dimension.
