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

# Retrieve Underlying Measures Table Context Menu

## Overview

| Plugin key | BAS Setting key |
| - | - |
| `accelerator_plugin-retrieve-underlying-measures` | `bas-plugin-menu-item-retrieve-underlying-measures` |

This plugin allows you to target the header cell of a measure inside a table and retrieve its underlying measures. These underlying measures will be added to the query.

<Frame>
  <img src="https://mintcdn.com/activeviam/rjtO5wfdrd2GJtpi/solutions/libraries/ui-components/5.2.26/images/Retrieve-underlying-measures-1.png?fit=max&auto=format&n=rjtO5wfdrd2GJtpi&q=85&s=d9180418a1565dd08f2d15ce3ecf66d8" alt="Retrieve-Underlying-Measures-1" width="507" height="296" data-path="solutions/libraries/ui-components/5.2.26/images/Retrieve-underlying-measures-1.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/activeviam/rjtO5wfdrd2GJtpi/solutions/libraries/ui-components/5.2.26/images/Retrieve-underlying-measures-2.png?fit=max&auto=format&n=rjtO5wfdrd2GJtpi&q=85&s=32fd8fe1dcbe84b317b3125aae3435bd" alt="Retrieve-Underlying-Measures-2" width="985" height="377" data-path="solutions/libraries/ui-components/5.2.26/images/Retrieve-underlying-measures-2.png" />
</Frame>

## Availability

| Solution | Enabled |
| - | - |
| FRTB | ✅ |
| Market risk | ✅ |
| SIMM | ✅ |
| CVARC | ✅ |
| Limits | ❌ |
| Sign-off | ❌ |

## Settings Required

None: an empty object signals that the widget is enabled for the given server.

## How to disable it

### Disable universally

To disable this feature for all solutions, add this line at the end of your extension’s `activate` function to unregister the plugin:

```diff theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
const extension: ExtensionModule = {
  activate: async (configuration: Configuration) => {
    ...
+    delete configuration.pluginRegistry["menu-item"]["accelerator_plugin-retrieve-underlying-measures"];
+    Object.values(configuration.pluginRegistry["widget"]).forEach(widgetPlugin => {
+        widgetPlugin.contextMenuItems = widgetPlugin.contextMenuItems.filter( menuItem => menuItem.key !== "accelerator_plugin-retrieve-underlying-measures")
+    })
  }
}
```

### Disable for specific servers

To disable this feature for a given server, you must delete this feature’s settings for that server key by altering the `basSettings` parameter before calling the `activate` function.

**Example**
Disabling this feature for the `FRTB` server only:

```diff theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
+ import {produce} from "immer";
- import {activate as activateFrtb} from "@activeviam/frtb-sdk";
+ import {activate as activateFrtb, basSettings as frtbBASSettings} from "@activeviam/frtb-sdk";
 import {activate as activeMarketRisk} from "@activeviam/mr-sdk";

 const extension: ExtensionModule = {
  activate: async (configuration: Configuration) => {
    ...
+    const frtbBASSettingsWithFeatureDisabled = produce(frtbBASSettings, draft => {
+      delete draft["FRTB"]["bas-plugin-menu-item-retrieve-underlying-measures"];
+    });

-   activateFrtb({configuration});
+   activateFrtb({configuration, basSetttings: frtbBASSettingsWithFeatureDisabled})
    activeMarketRisk({configuration});
  }
}
```
