# Adding Filters

This tutorial guides you through the straightforward process of adding field filters to your [Avonni Data Table](/flow/flow-components/data-table.md). Enabling filters gives end-users the power to sort and find the data they need quickly. This guide has you covered, starting with component setup and data source selection, dragging fields into the Datatable, and finally activating filters.&#x20;

Perfect your Datatable functionality and improve user interaction in just a few easy steps!

<figure><img src="/files/1ClsB8o3bfKZ6dXCLZvt" alt=""><figcaption><p>Final result with filters</p></figcaption></figure>

### **1. Configure the Avonni Datatable component**

* Select the **Datatable component**
* Open the **Component Builder** to access advanced settings

### **2. Select a source collection a data source**

* On the Data Source section, select **`Variable`**
* Select the source collection you want to add fields to your Data Table.

<figure><img src="/files/GBZzjvpdGX5I7hIz8iwM" alt=""><figcaption></figcaption></figure>

### **3. Drag fields on your Data Table**

* From the left panel, drag fields on your Data Table.

<figure><img src="/files/eEF5hAyqeDhWzSkGjHce" alt=""><figcaption></figcaption></figure>

### **4. Activate filters on selected fields**

* Click on the arrow next to the field name to allow this field to be filterable.

<figure><img src="/files/6cMtTEuXrFN25KyKmqTK" alt=""><figcaption></figcaption></figure>

### **5. Save and test the Data Table**


---

# 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://docs.avonnicomponents.com/flow/tutorials/components/data-table/adding-filters.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.
