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

# HIERARCHYBYPOSITION&#x20;

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

```js
HIERARCHYBYPOSITION(dimension, position)
```

#### Parameters

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

#### Examples

```js
HIERARCHYBYPOSITION("Account", 1)
```

**Note:** Returns the name of the first hierarchy in the Account dimension.
