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

# RISK_FACTOR_DESCRIPTION_OVERRIDES

The RISK\_FACTOR\_DESCRIPTION\_OVERRIDES table contains the override definitions for the Risk Factor Descriptions.

| Column Name | Type | Not Null |
| - | - | - |
| AS\_OF\_DATE | DATE | Y |
| RISK\_FACTOR | STRING | Y |
| RISK\_CLASS | STRING | Y |
| RISK\_MEASURE | STRING | Y |
| PARAMETER\_SET | STRING | Y |
| RISK\_FACTOR\_TYPE | STRING | |
| COMMODITY\_LOCATION | STRING | |
| SENIORITY | STRING | |
| MATURITY | STRING | |
| ZERO\_RISK\_WEIGHT | STRING | |

## Unique Key

| Columns |
| - |
| AS\_OF\_DATE |
| RISK\_FACTOR |
| RISK\_CLASS |
| RISK\_MEASURE |
| PARAMETER\_SET |

## Override base table

The base table for these overrides is the [Risk Factor Description](https://docs.activeviam.com/solutions/frtb/6.0/database/risk_factor_description.md) table. To define Overrides you must add facts to the base table. For details on why this is required, see [Overrides With DirectQuery](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/overrides-with-directquery.md).

### Inject base table

For each override, you must generate multiple entries in the [Risk Factor Description](https://docs.activeviam.com/solutions/frtb/6.0/database/risk_factor_description.md) table with the following
structure.

| Override Parameter | **Risk Factor Description** Table Field |
| - | - |
| **OVERRIDE KEY FIELD** | **RISK\_FACTOR** |
| **OVERRIDE DATE FIELD** | **AS\_OF\_DATE** |

Where:

* **Override Parameter**: The parameters to determine where to apply this override.
* **Risk Factor Description Table Field**: The field in the [Risk Factor Description](https://docs.activeviam.com/solutions/frtb/6.0/database/risk_factor_description.md) base table for this override.

### Create base store tuples

See the [Create Override Tuples](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/overrides-with-directquery.md#create-the-override-tuples) section for
an example of how to create the override tuples for the following override fields. These are the fields to override in the base override table, in
this case the [Risk Factor Description](https://docs.activeviam.com/solutions/frtb/6.0/database/risk_factor_description.md) Table.

| Override Table |
| - |
| PARAMETER\_SET |
| RISK\_FACTOR\_TYPE |
| COMMODITY\_LOCATION |
| SENIORITY |
| MATURITY |
| ZERO\_RISK\_WEIGHT |

These fields form an intermediate table containing the Override's base store fields and will be merged back into the Override base table: [Risk Factor Description](https://docs.activeviam.com/solutions/frtb/6.0/database/risk_factor_description.md).

#### Map override fields to base table fields

Once you create your tuples for each override field, you can then map the tuples back to the base store using the following relationship:

| Override Table | Risk Factor Description Field | Note |
| - | - | - |
| OVERRIDE KEY FIELD | RISK\_FACTOR | |
| OVERRIDE DATE FIELD | AS\_OF\_DATE | |
| PARAMETER\_SET | | No mapping exists |
| RISK\_FACTOR\_TYPE | RISK\_FACTOR\_TYPE | |
| COMMODITY\_LOCATION | COMMODITY\_LOCATION | |
| SENIORITY | SENIORITY | |
| MATURITY | MATURITY | |
| ZERO\_RISK\_WEIGHT | ZERO\_RISK\_WEIGHT | |
| | RISK\_CLASS | No mapping exists |
| | RISK\_MEASURE | No mapping exists |
| | UNDERLYING | No mapping exists |
| | UNDERLYING\_FXRISK\_CCY | No mapping exists |
| | UNDERLYING\_MATURITY | No mapping exists |
