# OLAP Slicer

Learn about Wijmo's OLAP Slicer in this documentation topic

## Content


The __Slicer__ control provides a quick way to edit filters applied to __PivotField__ objects.

It provides buttons the user can click to filter data based on values and indicates the current filtering state, which makes it easy to understand what is shown in filtered __PivotGrid__ and __PivotChart__ controls.

![olap-slicer](https://cdn.mescius.io/document-site-files/images/3c7113e2-10b3-45ed-8f3b-9fb1e0af2b74/olap/olap-slicer.png)

## Using Slicer

To start using the Slicer, create a new slicer control and give a field you want to slice.

```javascript
var slicer = new wijmo.olap.Slicer('#slicer', {
    field: 'Date'
});
```

## Customize Slicer

You can customize the __Slicer__ control to hide or show a header, and to hide or show checkboxes next to each item:

## Formatting

If you change the __format__ property of the field being filtered by the Slicer, the value list is updated automatically:
