> ## 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](./risk_factor_description) table. To define Overrides you must add facts to the base table. For details on why this is required, see [Overrides With DirectQuery](../dev/dev-direct-query/customization-and-internals/overrides-with-directquery).

### Inject Base Table

For each override, you must generate multiple entries in the [Risk Factor Description](./risk_factor_description) table with the following
structure.

| 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](./risk_factor_description).

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