# 'Contains' & 'Not contains'

### How does the 'Contains' & 'Not contains' filter work?

{% tabs %}
{% tab title="Contains" %}
The **'Contains'** filter is used when you want to view specific fields with particular words.

***For example***, consider a store that has a **wide range of products**, including Sony headphones, Bose headphones, Sony TV, Apple charger, Apple iPhone 5, Apple iPhone 6, Apple iPhone 7, Apple Mac computer, Apple AirPods, Apple mouse, SanDisk music player, SanDisk Pen drive, Seagate hard disk, HP laptop, and many others.

&#x20;Now, if you want to filter products that **contain** the word '**apple**', you can use the '**Contains**' **filter**.

<figure><img src="/files/33c1FEHZxRDP6Ro3dxVL" alt=""><figcaption></figcaption></figure>

When you apply the '**Contains**' filter for the word '**Apple**', the report will **ONLY** show **Apple products** because all the Apple products have the word '**Apple**' in their name, including Apple iPhone 5, Apple iPhone 6, Apple iPhone 7, Apple Mac computer, Apple AirPods, and Apple mouse.
{% endtab %}

{% tab title="Not contains" %}
The **'Not contains'** filter is used when you want to eliminate specific fields with a specific phrase.

***For example,*** when you **apply** the '**Not contains**' **filter** for the word '**apple**', the report will **ONLY** show **Non-Apple products**, such as Sony headphones, Bose headphones, Sony TV, SanDisk music player, SanDisk Pen drive, Seagate hard disk, and HP laptop.

<figure><img src="/files/k3PuNfWarw2O73gzhSDF" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

**Note:** You can add multiple filter values with the '**Contains**' and '**Not contains**' filter conditions.

*Watch this 102 seconds explanatory video to understand better:*&#x20;

{% embed url="<https://youtu.be/JyHyzuEuX-I>" %}


---

# 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.reportpundit.com/knowledge-base/report-creation/filters/contains-and-not-contains.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.
