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

# Add limits

> How to add limit values to an existing limit structure in the Atoti Limits Inventory, including advanced scopes and scopes on multi-level hierarchies.

A limit holds the values and dates that are monitored within a [limit structure](./limit-structure). If you have no limit structure yet, [set one up](./limit-structure) or [upload one](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/upload-limit-structures.md) first. To add many limits at once, see [Upload a limit file](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/upload-limits.md).

When you open a limit structure, a table is displayed that you populate with limit values. The table contains the attributes you selected in the **Scope** of the structure.

## How to add a limit

To add a limit:

1. Click **Add Limit** in the top right of the screen.

   A row is created in the table for your new limit.
2. Fill in the required fields: the scope, value, and start date. You can also specify an end date and a reference ID.

   To select an advanced scope, click the **Advanced** toggle in the scope dropdown and set up your scope. See [Advanced scopes](#how-to-set-an-advanced-scope) for more information on your selection.
3. If the limit structure uses a custom workflow, additional columns may appear in the table. Fill in these fields as required to save the limit.
4. Once you’re happy with the details click **Save** to finalize your limit.

![Add limit](https://mintcdn.com/activeviam/OGoHddfAJKhTS4dO/atoti-intelligence/workflows/limits/6.2/images/add-limit.gif?s=dc34c10d732a18d6f5131ead077072e6)

## How to set an advanced scope

When you add a limit, you can define an advanced scope instead of selecting a single member. Click the **Advanced** toggle in the scope dropdown and select one of the following options:

![](https://mintcdn.com/activeviam/OGoHddfAJKhTS4dO/atoti-intelligence/workflows/limits/6.2/images/complex-scope-dialog.png?fit=max\&auto=format\&n=OGoHddfAJKhTS4dO\&q=85\&s=7972dd47201a3d37458004a8a7f8eb80)

Each option combines two choices: whether the limit applies to each member separately (**For each**) or to their total (**Total**), and whether it covers the members you select or all the other members (**excluding**).

For example, for a limit on the books `BS_MGT_FX`, `CM_OILGAS` and `CM_PREC_EX`:

| Option (operator in a file) | The limit is evaluated on | Status appears on |
| - | - | - |
| **(For each) selected** (`=`) | Each selected member, separately. | Each selected member's row. |
| **(For each) excluding selected** (`<>`) | Each other member, separately. | Each other member's row. |
| **(Total) of selected** (`&=`) | The total of the selected members. | The Total row. |
| **(Total) excluding selected** (`&<>`) | The total of all the other members. | The Total row. |

In a file, the operator goes between the level and the list of members. For example, **(Total) excluding selected** on the three books is written `Book &<> [ BS_MGT_FX + CM_OILGAS + CM_PREC_EX ]`. The `+` separates the members: it does not add them up. For the full syntax, see [Advanced scopes](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/configure/scopes/advanced-scopes.md) in the Developer Guide.

> [accordion] Example: (For each) selected
>
> ![Pivot table by book: BS\_MGT\_FX, CM\_OILGAS and CM\_PREC\_EX each have a limit of 1,000 and their own status. The other books have no limit.](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/scopes/for-each-selected.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=517862ef760b9e0df6bde1961d966ca5)

> [accordion] Example: (For each) excluding selected
>
> ![Pivot table by book: every book except BS\_MGT\_FX, CM\_OILGAS and CM\_PREC\_EX has a limit of 1,000 and its own status. The three selected books have no limit.](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/scopes/for-each-excluding.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=a1ae058870d2dec4d2ede97a7c177da1)

> [accordion] Example: (Total) of selected
>
> ![Pivot table by book: one status on the Total row, for the sum of BS\_MGT\_FX, CM\_OILGAS and CM\_PREC\_EX against a limit of 1,000. The book rows have no status.](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/scopes/total-selected.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=487fceb3eb4db956b270b586aad106da)

> [accordion] Example: (Total) excluding selected
>
> ![Pivot table by book: one status on the Total row, for the sum of all books except BS\_MGT\_FX, CM\_OILGAS and CM\_PREC\_EX against a limit of 1,000. The book rows have no status.](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/scopes/total-excluding.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=66d3b9e7c6fddaa0416e635e0200e6fb)

Here’s our video on using advanced scoping:

[https://fast.wistia.com/embed/iframe/ql705ve219](https://fast.wistia.com/embed/iframe/ql705ve219)

## How to set a scope on a multi-level hierarchy

You can use multi-level hierarchies in the scope of your limits. Typical examples of multi-level hierarchies are counterparty hierarchies and book hierarchies.

Here’s an example of a book hierarchy. Let’s say you want to set a limit on Level 5, equal to FI\_IG\_FLOW.

![](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/multi-level-pivot-table.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=94afa15d2ee2b63a21e2cb199110af3a)

When setting a limit on a particular node in a multi-level hierarchy, the Limits Inventory captures and stores the full path to that node in the limit structure.

In our example, when setting a limit at Level 5 equal to FI\_IG\_FLOW, the system will capture the values of Level 4, Level 3, Level 2, Level 1 above FI\_IG\_FLOW.
