---
url: /cube-functions/cubedimensionbyposition.md
description: Returns the name of the dimension at the specified position in the cube.
---

# CUBEDIMENSIONBYPOSITION&#x20;

Returns the name of the dimension at the specified position in the cube.

```js
CUBEDIMENSIONBYPOSITION(cube, position)
```

#### Parameters

* `cube` - The name of the cube.
* `position` - The position of the dimension.

#### Examples

```js
CUBEDIMENSIONBYPOSITION("Sales", 1)
```

**Note:** Returns the name of the first dimension in the Sales cube.
