# 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="/files/ehHJQi9h2XMyQOmynN6P" 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="/files/t1IWgrTOg2dPqyvEGeS5" 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="/files/lStE6fNnwbASjAXbzsih" alt="" width="219"><figcaption></figcaption></figure>

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

<figure><img src="/files/jydhPpDdkI8NfnayIH2R" alt="" width="309"><figcaption></figcaption></figure>

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

<figure><img src="/files/9enFfbsitkfiK3iDKY4X" alt="" width="259"><figcaption></figcaption></figure>

<figure><img src="/files/VtBuIahreFI7f9Vlg1Pm" alt="" width="560"><figcaption></figcaption></figure>

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

<figure><img src="/files/JfuDAfidY0V5Tv9UOaWy" 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="/files/osAo0eOntDZMfNO6xpPM" alt="" width="314"><figcaption></figcaption></figure>

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

<figure><img src="/files/LBm4ufgbhXTAuI7yJtVz" 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="/files/sahk10ElyifpABE0CZ3h" alt="" width="314"><figcaption></figcaption></figure>

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

<figure><img src="/files/ha1FdotsBtrDofplzXWP" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://365automate.gitbook.io/365automate-gantt/filtering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
