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

# Temporary limits

> How to create a temporary limit in Atoti Limits to override an official limit for a fixed period, either from the KPI drawer in a dashboard or from the limits table in the Inventory.

A temporary limit is a limit that co-exists with an official limit for a given period of time. On evaluation, a temporary limit takes precedence over the official limit. It is used to handle extraordinary, non-lasting events.

For example, a trader may have an official limit of 1mm on Book A, with no expiration. The trader has an open position on Book A of 900,000, so she is not in breach of her limit. However, due to market volatility, prices have increased and her position has risen to 1.1mm, putting her in breach. She consults her risk manager, who expects volatility to subside in the next month and grants her a temporary limit on Book A of 1.15mm for 6 months. The temporary limit now takes precedence over the official limit for 6 months, so the trader's position of 1.1mm is no longer in breach.

## What do you need to create a temporary limit?

* You need the `ROLE_CREATE_TEMP_LIMIT` role, or `ROLE_LIMITS`. Without it, the temporary limit controls are disabled. See [Limits roles](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/configure/roles/limits-roles.md).
* A temporary limit requires an end date, because by definition it is temporary.
* A temporary limit cannot have a start date prior to the [Limits as-of-date](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/reference/input-files/as_of_date.md). This prevents an invalid retrospective resolution of a breach.
* A temporary limit overrides an official limit of the same limit structure.

A temporary limit follows the workflow of the original limit. If the original limit is StraightThrough, the temporary limit goes to the `Approved` status. If not, it goes through the same approval steps as the original. See [Approve limits](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/approve-limits.md).

## How to create a temporary limit from the KPI drawer

Use this option when you are investigating a breach in a dashboard and want to resolve it without leaving the dashboard. For more on the drawer, see [KPI drawer](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/breaches-and-warnings/kpi-drawer.md).

If the workflow of the limit allows it, the bottom half of the [KPI drawer](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/breaches-and-warnings/kpi-drawer.md) displays a form to create a temporary limit. The form has two modes.

### How to create a temporary limit in simple mode

Simple mode is the default. Enter a **Value**, a **Start Date** and an **End Date**. The start date defaults to the current as-of date. Subject to the limit workflow, a temporary limit is created to monitor the location you selected when you opened the KPI drawer.

### How to create a temporary limit in advanced mode

Toggle the **Advanced** switch to switch to this mode. It gives you more control: you define the scope of the temporary limit yourself, for example by selecting a specific desk or other parameters in a form. This is similar to [creating a limit with advanced scopes](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/add-limits.md#how-to-set-an-advanced-scope) in the Inventory.

## How to create a temporary limit from the Inventory

Use this option when you work in the limits table.

1. In the [Inventory](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/limit-structure/inventory.md), click the name of the limit structure to open it. See [View limits](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/manage-limits/view-edit-copy-delete.md#view-limits).
2. In the limits table, on the right, click the **Create Temporary Limit** button next to the relevant official limit. A new row is added below the selected limit, with type `temporary`.
3. Fill in the required fields: **Value**, **Start Date** and **End Date**. The start date defaults to the current as-of date.
4. Click **Save**.

## Next steps

* To see the temporary limit among the other limits of the structure, see [View, edit, copy, and delete limits](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/user-guide/manage-limits/view-edit-copy-delete.md).
* To understand how a temporary limit ranks against other limits at evaluation, see [Evaluation priority](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/configure/scopes/evaluation-priority.md).
