---
schema_version: "1"
id: ac8142dfa8de736b0ef2cf91cd34cb16d6c3bff3618e610e74594dd085c1a1fa
title: Create a Segment Based on a Specific Action Count
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_segment_create_action_count.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_segment_create_action_count.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 91d9b73612c6aa54a1c6f16f5c646681a5641a481d1a63a45ae43a85bbfbbcfc
description: Create segments for your campaigns to target users who complete one or more actions a specific number of times. To capture users who complete an action a specific number of times, create two action rules that relate to each other.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# Create a Segment Based on a Specific Action Count

Create segments for your campaigns to target users who complete one or more actions a specific number of times. To capture users who complete an action a specific number of times, create two action rules that relate to each other.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d14914e38">Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d14914e38 ">To create a segment:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d14914e38 ">A role with Segments Create/Edit permissions</td>

          </tr>
        </tbody>
      </table>

1. In the **Audiences** section of the main navigation, select **User Segments** | **User Segments**.
2. Click **New Segment**.
3. Enter a **Segment Name** that describes its purpose.
4. To create the first rule, select **Actions** from the **Select Category** dropdown.
5. Select **Action Count** from the **Select Actions Rule** dropdown.
6. Select **did** from the **User** dropdown.
7. Select **any of specific actions**.
8. Begin typing in the **Search Actions** field and select the action from the dropdown that appears.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_note.png)
    
    Note Actions vary by dataset. You can view the actions for your dataset by selecting **Reports** | **Actions**.
9. Enter the desired number in the **times** field.
10. Select **for all time**.
11. To create the second rule, click **New Rule** and ensure the **And** logical operator is selected.
12. Select **Actions** from the **Select Category** dropdown.
13. Select **Action Count** from the **Select Actions Rule** dropdown.
14. Select **did not** from the **User** dropdown.
15. Select **any of specific actions**.
16. Begin typing in the **Search Actions** field and select the action you selected for the first rule.
17. In the **times** field, enter a number that is one greater than the number you entered for the first rule.
18. Select **for all time**.
19. Click **Save**.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_example.png)

Example

To create a segment of users who complete the action "Home" twice, create two rules. The first rule captures all users who perform the action "Home" two or more times. The second rule captures all users who don’t perform the action "Home" three or more times. The second rule acts as a ceiling on the number of times a user completes the action. Because a user must meet both rules to be in this segment, the segment contains all users who complete the action "Home" just two times.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14914e291">Rule 1</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14914e294">Rule 2</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Rule 1" class="slds-cell-wrap" style="vertical-align:top;" headers="d14914e291 ">
                  <ul>
                    <li dir="ltr">
                      <p dir="ltr">Actions</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Action Count</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Did</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Any of the specific actions</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Home</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">2</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">For all time</p>
                    </li>

                  </ul>
                </td>

                <td data-label="Rule 2" class="slds-cell-wrap" style="vertical-align:top;" headers="d14914e294 ">
                  <ul>
                    <li dir="ltr">
                      <p dir="ltr">Actions</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Action Count</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Did not</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Any of the specific actions</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">Home</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">3</p>
                    </li>

                    <li dir="ltr">
                      <p dir="ltr">For all time</p>
                    </li>

                  </ul>
                </td>

              </tr>
            </tbody>
          </table>