> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IUseDrillKeyDriverAnalysisOptions

- Package: [@gooddata/sdk-ui-gen-ai](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.71/libs/sdk-ui-gen-ai/src/keyDriverAnalysis/useDrillKeyDriverAnalysis.tsx
- Guides: [AI Assistant](https://www.gooddata.ai/docs/gooddata-ui/latest/ai-modules/ai-assistant/index.md), [Key Driver Analysis](https://www.gooddata.ai/docs/gooddata-ui/latest/ai-modules/key-driver-analysis/index.md)

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Chart context for enabling Key Driver Analysis drilling.

**Signature:**

```typescript
export interface IUseDrillKeyDriverAnalysisOptions 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [anchorRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedrillkeydriveranalysisoptions/index.md#iusedrillkeydriveranalysisoptionsanchorref) |  | RefObject&lt;HTMLElement \| null&gt; | **_(BETA)_** Ref to the element wrapping the chart, used to position the menu at the drilled point. |
| [enabled?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedrillkeydriveranalysisoptions/index.md#iusedrillkeydriveranalysisoptionsenabled) |  | boolean | **_(BETA)_** _(Optional)_ Whether Key Driver Analysis drilling is available to the current user. Defaults to true. The application must check workspace availability and permissions; this does not enable the backend feature. |
| [enableSecondGranularities?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedrillkeydriveranalysisoptions/index.md#iusedrillkeydriveranalysisoptionsenablesecondgranularities) |  | boolean | **_(BETA)_** _(Optional)_ Whether the deployment supports second-level date granularities. Defaults to false. |
| [filters?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedrillkeydriveranalysisoptions/index.md#iusedrillkeydriveranalysisoptionsfilters) |  | [IFilter](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ifilter/index.md)[] | **_(BETA)_** _(Optional)_ Complete effective chart filters, including renderer-level filters. Defaults to the insight's filters. Only attribute filters are used; the selected comparison defines the dates. |
| [insight](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedrillkeydriveranalysisoptions/index.md#iusedrillkeydriveranalysisoptionsinsight) |  | [IInsight](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iinsight/index.md) | **_(BETA)_** Insight rendered by the chart. |
| [locale?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedrillkeydriveranalysisoptions/index.md#iusedrillkeydriveranalysisoptionslocale) |  | string | **_(BETA)_** _(Optional)_ Locale for the comparison menu and date formatting. Defaults to en-US. |

## Property details

### IUseDrillKeyDriverAnalysisOptions.anchorRef

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Ref to the element wrapping the chart, used to position the menu at the drilled point.

**Signature:**

```typescript
anchorRef: RefObject<HTMLElement | null>;
```

### IUseDrillKeyDriverAnalysisOptions.enabled

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Whether Key Driver Analysis drilling is available to the current user. Defaults to true. The application must check workspace availability and permissions; this does not enable the backend feature.

**Signature:**

```typescript
enabled?: boolean;
```

### IUseDrillKeyDriverAnalysisOptions.enableSecondGranularities

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Whether the deployment supports second-level date granularities. Defaults to false.

**Signature:**

```typescript
enableSecondGranularities?: boolean;
```

### IUseDrillKeyDriverAnalysisOptions.filters

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Complete effective chart filters, including renderer-level filters. Defaults to the insight's filters. Only attribute filters are used; the selected comparison defines the dates.

**Signature:**

```typescript
filters?: IFilter[];
```

### IUseDrillKeyDriverAnalysisOptions.insight

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Insight rendered by the chart.

**Signature:**

```typescript
insight: IInsight;
```

### IUseDrillKeyDriverAnalysisOptions.locale

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Locale for the comparison menu and date formatting. Defaults to en-US.

**Signature:**

```typescript
locale?: string;
```
