# How to exclude records from the analysis

{% hint style="warning" %}

## From Buil 3.70.x, records are selected / excluded based on the Record Filter.&#x20;

* [Record filters allow to easily define an advanced logic to select the scope of the duplicate detection. ](/delpha-for-salesforce/delpha-upgrade/whats-new/duplicate/build-3.70.0.md#record-filter)
* [You can always rely on formula fields for a dynamic duplicate detection range range](#advanced-use-case-dynamic-scope-with-formula-field)
  {% endhint %}

## How to Exclude Records from Duplicate Detection with "Do Not Compare"

When running **duplicate detection** on objects such as **Accounts**, **Contacts**, or **Leads**, Delpha allows you to **exclude specific records** by using the **D Do Not Compare** field.

This feature helps you control the **scope** of your analysis and avoid consuming unnecessary duplicate credits.

## How It Works

* **Field Name:** `D Do Not Compare`
* **Field Type:** Boolean (Checkbox)

| Value             | Behavior                                         |
| ----------------- | ------------------------------------------------ |
| `True`            | ❌ Record is **excluded** from duplicate analysis |
| `False` (default) | ✅ Record is **included** in duplicate analysis   |

***

## Advanced Use Case: [Dynamic Scope with Formula Field](/delpha-for-salesforce/how-to-faq/delpha-duplicate/how-to-make-duplicate-records-exclusion-dynamic.md)

If you want a more flexible setup:

* **Replace** Delpha's default checkbox with your **custom Boolean field** (e.g., formula-based).
* This allows for dynamic exclusion based on business rules (e.g., only exclude inactive records or those from a specific source).

{% hint style="danger" %}
Ensure your custom field is **visible to the admin profile** for it to be detected and used properly by Delpha.
{% endhint %}

## Why Use This?

* Helps you [**control duplicate credit consumption**](broken://pages/MqSOw8rZ6ChH4NA05PfJ)
* Prevents overloading the system with **irrelevant records**
* Offers more control over your **deduplication scope**


---

# 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://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/how-to-exclude-records-from-the-analysis.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.
