> ## 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.

# ProRataHierarchy

|                 |                                                         |
| --------------- | ------------------------------------------------------- |
| **Description** | Select a hierarchy for Pro-Rata Russian Doll allocation |
| **Variations**  | [pro\_rata](./pro_rata)                                 |

This context value enables "Russian Doll" calculation for a Pro-rata measure along the selected hierarchy. Please note that **ProRataLeafLevel** context value must be set to "NONE".

First you select a hierarchy from the list:

* \[Booking].\[Books]
* \[Booking].\[Desks]
* \[Organization].\[BookHierarchy]
* \[Organization].\[Legal Entities]
* \[Organization].\[LegalEntityHierarchy]

The pro-rata measure will compute capital allocation recursively, so that the sum at each level in the hierarchy is equal to the Pro-Rata capital allocation of the parent level.

Consider this example:

<Frame>
  <img src="https://mintcdn.com/activeviam/3WM26kEPUrEWlXvw/solutions/frtb/6.0/images/proratahierarchy.png?fit=max&auto=format&n=3WM26kEPUrEWlXvw&q=85&s=da18b7baa88f21f9554cd3cbdfef3766" alt="ProRataHierarchy Example" width="470" height="483" data-path="solutions/frtb/6.0/images/proratahierarchy.png" />
</Frame>

* **SBM Risk Charge** Pro-Rata and **SBM Risk Charge** measures are on columns,
* the multi-level \[Organization].\[BookHierarchy] is on the rows and selected in the context value.

Result:

* **SBM Risk Charge** and **SBM Risk Charge** Pro-Rata are equal at the Enterprise level.
* ****SBM Risk Charge** Pro-Rata** values at lower levels are additive. See for instance, that the total for books under "Developed Markets" is equal to the desk total (`1.002.912`).
