# Using “All Of” and “Any Of” Tag Conditions for Customer Segmentation

\
DoubleTick allows you to segment customers using tags. To make segmentation more accurate, you can now apply **All Of** and **Any Of** conditions when filtering customers by multiple tags. These conditions help you define whether customers must match **all selected tags** or **at least one selected tag**.

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FgPhKik5XqznB99Re5sp5%2Fimage.png?alt=media&#x26;token=edc708fd-c672-4b0b-99e7-f52336e46622" alt=""><figcaption></figcaption></figure>

***

### **Where This Feature Lives**

You can find this option in:

> **Customers→ Add Filter → Add Conditions → Tags Filter**

When adding a Tags filter, you’ll see a condition selector where you can choose:

* **All Of**
* **Any Of**

***

### **How the Conditions Work**

#### **1. Any Of (OR Condition)**

**Definition:**\
Returns customers who match **at least one** of the selected tags.

This is useful when multiple tags represent **alternative options**.

**Example:**\
If you select `Mumbai` and `Thane` under **Any Of**, the segment will include customers who are:

* Tagged **Mumbai**, or
* Tagged **Thane**, or
* Tagged **both**

***

#### **2. All Of (AND Condition)**

**Definition:**\
Returns customers who match **every** selected tag.

This is useful when multiple tags represent **combined criteria** that must all be true.

**Example:**\
If you select `1BHK` and `Andheri` under **All Of**, the segment will include customers who are:

* Tagged **1BHK**
* **and** tagged **Andheri**

Only customers matching both are included.

***

### **Why This Matters for Segmentation**

These tag conditions allow users to build more precise customer lists by controlling how tags interact:

| Condition  | Logic | Result                           |
| ---------- | ----- | -------------------------------- |
| **Any Of** | OR    | Broader segments                 |
| **All Of** | AND   | Narrower, more specific segments |

This improves the accuracy of customer targeting for campaigns, exports, and follow-ups.

***

### **Filter Behavior Summary**

| Filter action    | What it does                                                       |
| ---------------- | ------------------------------------------------------------------ |
| **Select Tags**  | Add tags to filter by                                              |
| **Any Of**       | Matches customers with at least 1 selected tag                     |
| **All Of**       | Matches customers with all selected tags                           |
| **AND Operator** | Combine tag filters with other fields (e.g., status, source, date) |

***

### **Common Use Patterns**

Customers typically use these conditions for:

✔ Geographic segmentation (cities, regions)\
✔ Product preference (e.g. size, model, category)\
✔ Requirement matching (e.g. budget, configuration)\
✔ Label-based categorization (e.g. lead type, sales stage)

***

### **Exporting and Reusing Segments**

Once created, a segment with tag conditions can be:

* Saved for future use
* Exported
* Used in campaigns
* Used for retargeting

***

### **Key Takeaways**

* **Any Of** broadens the segment
* **All Of** narrows the segment
* Both enhance precision when multiple tags are involved
* Segment accuracy improves when tags represent meaningful attributes
