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

# newTwoDimensional()

- 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
- Guides: [Result structure](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/execution/result-structure/index.md)

Creates new two dimensional specification where each dimension will have the provided set of identifiers.

**Signature:**

```typescript
export declare function newTwoDimensional(dim1Input: DimensionItem[], dim2Input: DimensionItem[]): IDimension[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dim1Input | [DimensionItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dimensionitem/index.md)[] | items to put into the first dimension, this can be item identifiers or totals |
| dim2Input | [DimensionItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dimensionitem/index.md)[] | items to put into the second dimension, this can be item identifiers or totals |

**Returns:**

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

array with exactly two dimensions

## Remarks

The 'measureGroup' identifier MAY be specified in only one of the dimensions.
