> ## 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 and hierarchies

> Reference for the common, simulation, and optional dimensions and their hierarchies shared across all Atoti Enterprise Risk Suite solution cubes.

Common dimensions are shared across all Atoti Enterprise Risk Suite solutions. Each solution builds its own cube on top of these shared dimensions, which provide a consistent analytical structure for trade, counterparty, book, and simulation data. Understanding these dimensions is a prerequisite before reading the dimensions reference for any specific solution.

Dimensions fall into three categories:

* **Common** dimensions are present in every solution cube.
* **Common (simulation)** dimensions drive cube members that are computed at query time, not stored as data.
* **Common (optional)** dimensions are provided by the common layer as reusable building blocks. Each solution decides whether to include them and whether to expose a feature flag for toggling them.

Optional dimensions are marked with an asterisk (\*).

## Dimension reference

| Dimension | Hierarchy | Levels | Category | Description |
| - | - | - | - | - |
| AsOfDate | AsOfDate | AsOfDate | Common | Date of the risk calculation |
| Trade Attributes | Trade ID; Trader; Sales; Trade Date; Trade Maturity | Trade ID; Trader; Sales; Trade Date; Trade Maturity | Common | Trade identification and attributes |
| Currencies | Display Currency | Display Currency | Common (simulation) | Currency used to display converted values |
| Confidence Level | Confidence Level | Confidence Level | Common (simulation) | Confidence level percentage (e.g. 95.0, 99.0) |
| Scenarios | Scenario | Scenario | Common (simulation) | Individual scenario names from the P\&L vector |
| Books\* | Book ID; Book Structure | Book ID; the structure levels (configurable depth, default 4) | Common (optional) | Book hierarchy for aggregation |
| Organization\* | Organization ID; Organization Structure | Organization ID; the structure levels (configurable depth, default 5) | Common (optional) | Organizational hierarchy for aggregation |
| Counterparties\* | Counterparty ID; Counterparty Name; Rating; Sector; Country of Address; Country of Risk; Counterparty Structure | Counterparty ID; Counterparty Name; Rating; Sector; Country of Address; Country of Risk; the structure levels | Common (optional) | Counterparty details and risk attributes |

## Simulation dimensions

Simulation dimensions drive cube members that are not stored as data but are computed on the fly. The PFE, xVA and VaR cubes include the following simulation dimensions. In the VaR cube, Currencies is present only when `fx-conversion.enabled` is `true`, its default.

**Currencies** provides a set of predefined currencies on its Display Currency hierarchy. Selecting a member converts all monetary values to that currency using the loaded FX rates.

**Confidence Level** defines the quantile percentages at which measures such as VaR and ES are computed. The active confidence level member is read at query time by risk measures that depend on it.

**Scenarios** expands the aggregated P\&L vector into individual rows, one per scenario. This allows drill-through to individual scenario P\&L values.

## Optional dimensions

The common layer provides the following dimensions as reusable building blocks. Each solution decides independently whether to include them and, if so, whether to expose a feature flag that lets users enable or disable them. The documentation for each solution provides details.

The **Books** dimension represents an internal book hierarchy. It has a `Book ID` hierarchy and a `Book Structure` hierarchy, whose depth is configurable. The default depth is four levels.

```
Book Structure (default 4 levels)
├── Level 1: Group          (e.g. ActiveBank Group)
│   ├── Level 2: Region     (e.g. ActiveBank International)
│   │   ├── Level 3: Area   (e.g. ActiveBank EMEA)
│   │   │   └── Level 4: Unit (e.g. ActiveBank EU)
```

The **Organization** dimension represents an internal reporting hierarchy. It has an `Organization ID` hierarchy and an `Organization Structure` hierarchy, whose depth is configurable. The default depth is five levels.

```
Organization Structure (example with 4 levels)
├── Level 1: Group          (e.g. ActiveBank Group)
│   ├── Level 2: Region     (e.g. ActiveBank International)
│   │   ├── Level 3: Area   (e.g. ActiveBank EMEA)
│   │   │   └── Level 4: Unit (e.g. ActiveBank EU)
```

The **Counterparties** dimension groups trades by their external counterparty. Each counterparty attribute is its own single-level hierarchy, supporting regulatory and risk reporting use cases:

```
Counterparties
├── Counterparty ID
├── Counterparty Name
├── Rating            (e.g. AAA, A, B)
├── Sector            (e.g. Financials, Consumer Staples)
├── Country of Address  (e.g. GBR, JPN)
└── Country of Risk     (e.g. GBR, JPN)
```

Counterparties that own one another are additionally arranged into a **Counterparty Structure** hierarchy, built from each counterparty's parent. Its depth is configurable.

Its members are the counterparty identifiers. Where those identifiers are not meaningful to read, such as opaque keys, the hierarchy can display counterparty names instead, through [`structure-display`](./configuration-properties#counterparty-structure-display). That setting changes the caption alone: the members keep their identifiers, so saved coordinates survive it being switched either way.

## Related pages

* [Configuration properties](https://docs.activeviam.com/solutions/enterprise-risk-suite/1.1/common/reference/configuration-properties.md)
* [Input file formats](https://docs.activeviam.com/solutions/enterprise-risk-suite/1.1/common/reference/input-file-formats.md)
