> For the complete documentation index, see [llms.txt](https://tembi.gitbook.io/tembi-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tembi.gitbook.io/tembi-knowledge-base/product-how-to/advanced-filtering-and-or.md).

# Advanced filtering "And/Or"

Advanced filtering lets you narrow the dataset using **AND** and **OR** logic, so you can build precise filtering.

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

#### How filtering logic works

Tembi uses two levels of logic:

**1) Filters within a group use AND**\
If you add multiple filters inside the same group, a webshop must match **all** of them to be included.

Example (one group):

* Webshop platform = Shopify, WooCommerce
* Growth prediction = high, very high
* Municipality = Stockholm, Göteborg

Result: webshops that match all three.

**2) Multiple filter groups use OR**\
If you create an additional filter group, the results will include webshops that match **either** group.

Example (two groups):

* **Group 1**: Platform + growth + municipality\
  **OR**
* **Group 2**: Municipality + delivery method (for example excluding a method)

Result: webshops that match group 1 **or** group 2.

#### Build a filter group (AND)

1. Open **Filters**.
2. Click **Add another filter** to add criteria within the same group.
3. Keep adding filters until the group represents one clear segment.

Tip: use the search field in the filter list (for example, type “delivery”) to find relevant filters faster.

#### Add a second filter group (OR)

Use a second group when you have two valid routes into the same shortlist.

1. Click **Add new filter group**.
2. Add the filters for the second segment.
3. The dataset will now include webshops that match **group 1 or group 2**.

This is useful when your ICP has more than one pattern (for example, “fast-growing Shopify stores in big cities” **or** “any store in those cities using a specific delivery setup”).

#### Save filters as favourites

When you’ve built a useful setup, save it so you can reuse it.

* Open **Saved filters**
* Save the current filter setup with a clear name (for example “Nordics - high growth Shopify”)
* Reopen it any time to return to the same scope without rebuilding it

Good practice: create separate saved filters for **prospecting**, **key accounts**, and **market views** to avoid constant edits.

#### Practical guidance

* Use **AND** to define one precise segment.
* Use **OR** when you want multiple segments in one view.
* If results get noisy, split into separate saved filters rather than adding more OR groups.
* If results get too small, remove one filter at a time (often geography or technology are the biggest limiters).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://tembi.gitbook.io/tembi-knowledge-base/product-how-to/advanced-filtering-and-or.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.
