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

# changeFilterContextSelectionByParams()

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

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

**Signature:**

```typescript
export declare function changeFilterContextSelectionByParams(input: ChangeFilterContextSelectionParams): ChangeFilterContextSelection;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| { filters, attributeFilterConfigs, resetOthers, correlationId, tabLocalIdentifier, matchByLocalIdentifier, restorePerTabOriginals, } | (not declared) |  |
| input | [ChangeFilterContextSelectionParams](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.changefiltercontextselectionparams/index.md) |  |

**Returns:**

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

## Remarks

Dispatching this command will result into setting provided dashboard filters to the current dashboard filter context.

Only filters that are stored in the filter context can be applied (filters that are visible in the filter bar). Filters will be matched via display form ref, duplicities will be omitted. Date filter that does not match any visible option by the current date filter config will be also omitted.
