---
schema_version: "1"
id: edd362411a921e3737e3388c8c4036a604deaf263ba760b66e1076f8f45e5983
title: Segment Your Data
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/custom_ai_prediction_builder_segment_guided_setup.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.custom_ai_prediction_builder_segment_guided_setup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8685df907e675c604b4b40f86411c9f1e26819053215e7139c695da8f8f466f7
description: When you build a prediction in Einstein Prediction Builder, you can also focus your prediction on a specific segment of your dataset. For example, to only look at data for a particular region or industry. With segments, you can get more useful predictions by excluding records that aren’t relevant to your prediction.
products:
  - Sales
  - Sales Enablement
release: "264"
---
# Segment Your Data

When you build a prediction in Einstein Prediction Builder, you can also focus your prediction on a specific segment of your dataset. For example, to only look at data for a particular region or industry. With segments, you can get more useful predictions by excluding records that aren’t relevant to your prediction.

1. On the Segment page, specify a segment for your object. To define a segment, select **Segment of <Object>**, for example, Segment of Account.
    
    ![Segment your dataset](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-custom_ai-264-0-0-production-enus/40dfbcd7-3bfe-4d20-9d53-164eb414358b/custom_ai/images/einstein_prediction_builder_segment_dataset_guided_setup.png)
2. Select a field, operator, and value. For example, to focus your prediction only on leads in the Food & Beverage industry, select **Industry**, **Equals**, and **Food & Beverage**.
3. To add more conditions and further define your segment, click **Add Condition**. Let's say you want Einstein to focus only on companies with $5 million or more in annual revenue. You enter **Annual Revenue**, **Greater than**, and **$5,000,000**.
4. Specify the logic that you want to use to define the relationship between the conditions.
    - To use the AND operator for all conditions, select **Meet All Conditions**. For example, you want Einstein to look at all leads in the Food & Beverage industry with an annual revenue of over $5 million.
    - To use the OR operator for all conditions, select **Meet All Conditions**. Maybe you want Einstein to focus on contacts who are either homeowners or high income earners.
        
        ![Define segment using OR operator](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-custom_ai-264-0-0-production-enus/40dfbcd7-3bfe-4d20-9d53-164eb414358b/custom_ai/images/einstein_prediction_builder_any_conditions_guided_setup.png)
    - To use a combination of AND and OR operators to define your segment, select **Meet Custom Condition Logic** . For example, to focus your prediction only on accounts with more than 10,000 employees in the Construction, Machinery, or Manufacturing industries.
        
        ![images/einstein\_prediction\_builder\_custom\_logic\_guided\_setup.png](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-custom_ai-264-0-0-production-enus/40dfbcd7-3bfe-4d20-9d53-164eb414358b/custom_ai/images/einstein_prediction_builder_custom_logic.png)
5. When you’re done defining your segment, click **Save & Next**.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-custom_ai-264-0-0-production-enus/40dfbcd7-3bfe-4d20-9d53-164eb414358b/images/icon_note.png)

Note

If you change your mind, you can switch from using a segment of records to all records at this point.