---
url: /cube-functions/offset.md
description: >-
  Returns the name of the element at a specified index (numeric position)
  relative to the specified element in a specified dimension hierarchy.
---

# OFFSET&#x20;

Returns the name of the element at a specified index (numeric position) relative to the specified element in a specified dimension hierarchy.

```js
OFFSET(dimension, hierarchy, element, offset)
```

#### Parameters

* `dimension` - The name of the dimension.
* `hierarchy` - The name of the hierarchy.
* `element` - The name of the element.
* `offset` - The relative position to return.

#### Examples

```js
OFFSET("Time", "Default", "2020", 1)
```

**Result:** `"2021"`
