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

# insightSetFilters()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/insight/index.ts
- Guides: [Working with visualization objects](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/data-model/insights/index.md)

Gets a new insight that 'inherits' all data from the provided insight but has different filters.

**Signature:**

```typescript
export declare function insightSetFilters<T extends IInsightDefinition>(insight: T, filters?: IFilter[]): T;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| insight | T | insight to work with |
| filters | [IFilter](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ifilter/index.md)[] | _(Optional)_ new filters to apply |

**Returns:**

T

always new instance

## Remarks

New filters will be used in the new insight as-is, no merging with existing filters.
