> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dimensions

<span id="atoti.dimensions.Dimensions" />

Manage the dimensions of a [`Cube`](./atoti.Cube#atoti.Cube).

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> table = session.create_table(
...     "Sales", data_types={"Product": "String", "Shop": "String"}
... )
>>> cube = session.create_cube(table, mode="manual")
>>> d, h = cube.dimensions, cube.hierarchies
>>> h["Product"] = [table["Product"]]
>>> h["Shop"] = [table["Shop"]]
```

The built-in **Measures** dimension is excluded:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> list(d)
['Sales']
```

Iterating on a dimension lists the names of its hierarchies:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> list(d["Sales"])
['Product', 'Shop']
```

Moving a hierarchy to a new dimension creates it:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> h["Shop"].dimension_name = "Geography"
>>> list(d)
['Geography', 'Sales']
>>> list(d["Geography"])
['Shop']
>>> list(d["Sales"])
['Product']
```

<Callout icon="link">
  **See also**:
  [`Dimension`](./atoti.Dimension#atoti.Dimension) to configure existing dimensions.
</Callout>
