# Filtering

You may not want to show all items in the gantt chart, and there are several ways to add filtering. These options are configured under **Settings > Filtering**.

### Static filtering on a single field

To add a permanent (static) filter on a single field, select **Field to filter** and then select the value:

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FZrEBaXhGvhptDusTAdXi%2Fimage.png?alt=media&#x26;token=7d3cf8c1-a8d5-4c7b-aef7-3889e401cbcb" alt="" width="311"><figcaption></figcaption></figure>

The gantt chart will then only display items matching this value.

### Static filtering on a view

If you prefer to configure a more complex filter, such as using a combination of fields, "not", or "or" filters, you must configure a view on the list. You can then select the view under "**Default view for data filtering**":

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FspcEqbB7akYVlNwGwbkj%2Fimage.png?alt=media&#x26;token=e37d0df0-22c7-4514-a4f2-f23797ff0a40" alt="" width="306"><figcaption></figcaption></figure>

To add to the available views, navigate to your list, modify your filters as appropriate by clicking on columns and selecting "**Filter by**":

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FVetsVrWAbWk8NZeDT6BM%2Fimage.png?alt=media&#x26;token=b9e671c3-b576-407e-9699-719e737d4319" alt="" width="219"><figcaption></figcaption></figure>

Then select the relevant values and click **Apply**:

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FcFcp5IN4muPBnMPnrY0o%2Fimage.png?alt=media&#x26;token=f2467f7f-e353-4b89-8bcc-9981b95c2e2d" alt="" width="309"><figcaption></figcaption></figure>

Save your new view by clicking **Save view as**:

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FzCpopp13OAjVz66Sq0Gx%2Fimage.png?alt=media&#x26;token=254ae961-604b-486e-8f2e-05a832611e0b" alt="" width="259"><figcaption></figcaption></figure>

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FOXU3r0TMrzhxkCxkAR9T%2Fimage.png?alt=media&#x26;token=e171062c-ff76-4e9b-8149-1c40e426c595" alt="" width="560"><figcaption></figcaption></figure>

This will now appear as an options in your Gantt configuration:

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2F5xmlgBSkTBxobP96zf5D%2Fimage.png?alt=media&#x26;token=43a70573-4ab0-4864-82fd-b9dfe9128d58" alt="" width="326"><figcaption></figcaption></figure>

When saved, the chart will now only show items from this view.

### Dynamic filtering using multiple views

To give your users the option to select a view, you can create as many views as you wish and select them under "**End-user selectable views**":

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FaEkmXNPz3QyXip51WU2Y%2Fimage.png?alt=media&#x26;token=e23ea2c7-9725-4209-9df2-3d1100cfa25e" alt="" width="314"><figcaption></figcaption></figure>

These will now appear as a drop-down in the chart:

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FMJ8mq9lYTzs7Mn1Ehd5v%2Fimage.png?alt=media&#x26;token=71690e31-78a8-4c05-a99a-4bf974528523" alt="" width="371"><figcaption></figcaption></figure>

### Dynamic filtering using fields

You can give your users the option to filter on any number of fields. To do this, select the fields under "**End-user filterable fields**":

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FbvbtseGWKWvvvfwhx26I%2Fimage.png?alt=media&#x26;token=25f73d14-3781-4652-b0f1-689f701716a9" alt="" width="314"><figcaption></figcaption></figure>

These fields will now appear as a drop-down in the chart:

<figure><img src="https://2421994811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyLN8Zmi11JUWQyHqV0fE%2Fuploads%2FybkvotukSt7fPlkp7u8y%2Fimage.png?alt=media&#x26;token=e1f176d5-c832-4478-be10-96cf09a16182" alt="" width="404"><figcaption></figcaption></figure>

The '**Load ancestors on filtering**' option, if selected, will mean that for any matching tasks, their parent tasks/projects will also be shown.
