# Filtering

The KendoReact PivotGrid component supports filtering through the [`usePivotOLAPService`](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/usepivotolapservice) hook or the [`PivotOLAPService`](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotolapservice) higher-order component.

The `filter` property is a JavaScript array of [FilterDescriptor](https://www.telerik.com/kendo-react-ui/components/dataquery/api/filterdescriptor) objects containing the following keys:

* field—The full path to the tuple member. For example, `[Date].[Calendar].[Calendar Year].&[2005]`.
* operator—All operators that work with strings. Note that the component treats field values as strings.
* value—The filter value.

## Configuration

To set an initial `filter`, pass the [`defaultFilter`](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotolapserviceargs) property to the [`usePivotOLAPService`](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/usepivotolapservice) hook or the [`PivotOLAPService`](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotolapservice) higher-order component.

The following example demonstrates the basic configuration of the default filter.

[Demo Source](https://demos.telerik.com/kendo-react-ui/pivotgrid/filter/configuration/func/source.txt)

## Suggested Links

* [PivotGrid Sorting](https://www.telerik.com/kendo-react-ui/components/pivotgrid/sorting)
* [API Reference of the KendoReact usePivotOLAPService hook](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/usepivotolapservice)
* [API Reference of the KendoReact PivotOLAPService HOC](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotolapservice)
