---
url: /process-functions/hierarchy-create.md
description: Creates a hierarchy within a dimension.
---

# hierarchy.create

Creates a hierarchy within a dimension.

```js
hierarchy.create(dimension, hierarchy)
```

#### Parameters

* `dimension` - The dimension in which to create a hierarchy.
* `hierarchy` - The identifier of the hierarchy created.

#### Example

```js
hierarchy.create("Account", "Profit and Loss");
```
