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

# setDashboardDateFilterWithDimensionConfigMode()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/commands/dashboard.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Creates the [ISetDashboardDateFilterWithDimensionConfigMode](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isetdashboarddatefilterwithdimensionconfigmode/index.md) command.

**Signature:**

```typescript
export declare function setDashboardDateFilterWithDimensionConfigMode(dataSet: ObjRef, mode?: DashboardDateFilterConfigMode): ISetDashboardDateFilterWithDimensionConfigMode;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataSet | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | dataSet of the filter the mode is changed for |
| mode | [DashboardDateFilterConfigMode](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dashboarddatefilterconfigmode/index.md) | _(Optional)_ newly added mode |

**Returns:**

[ISetDashboardDateFilterWithDimensionConfigMode](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isetdashboarddatefilterwithdimensionconfigmode/index.md)

change filter mode command

## Remarks

Dispatching the commands will result into setting provided the mode as a mode for the date filter.
