# Add as Filter

In ThoughtSpot, you can enhance your chart by adding filters directly from the panel where attributes and measures are listed. This feature is particularly useful for refining the displayed data, ensuring your analysis focuses precisely on relevant information. It also provides flexibility in managing data visibility among different user groups, independent of row-level security measures.

There are three ways to add filters to your chart:

## **1. Adding a filter from Panel**

I’ve created a chart using measures such as Attribute - Category, Measure - Cost, and Revenue. On the left side, you’ll find panels showing Measures and Attributes. When you hover over any selected element, a small “Add as filter” option appears.

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

Clicking on the attribute filter opens a small pop-up where you can choose to exclude or include specific data points. For example, you can exclude ‘Books’ and include only ‘Electronics and Movies’. The chart will adjust to reflect your selections accordingly.

<figure><img src="/files/963onPIkeR7wy87QGc1U" alt=""><figcaption></figcaption></figure>

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

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

Similarly, clicking on the metric filter opens a small pop-up where you can apply different conditions to the chart. For instance, applying a condition like “greater than 300,000” filters the chart data accordingly.

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

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

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

## **2. Adding a Filter from the Grid Table**

When creating an answer from the grid table, you have the option to add a filter. This will display the same pop-up option for filtering as mentioned previously. You can apply filters from here for both attributes and measures in the same manner.

<figure><img src="/files/95Fcu60xjpxeNel5m8Hx" alt=""><figcaption></figcaption></figure>

## **3. Adding a Filter from the Data Tab**

You can also go directly to the Data tab and select the worksheet you want to work on. Open the worksheet and under the sheet, you will find an option to ‘Edit Worksheet’. Once you click on it, the filters option will be displayed on the left side, allowing you to apply filters on attributes or measures as described in the first step.

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

<figure><img src="/files/4b92keMfJY555IUb0NbB" alt=""><figcaption></figcaption></figure>

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


---

# 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://tsdocs.vitaracharts.com/readme/add-as-filter.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.
