# Change a segment's rules

> Open an existing segment under Data Platform › Segments, add a filter to one of its rules and save it, and learn what a rule change does to the campaigns that use the segment.

You can change the name and the rules of a segment at any time. This guide adds a **Days ago** filter to a rule of an existing segment and checks the new size before saving. The same form is used to remove rules, change a rule’s **Mode**, delete the segment or copy it.

## Before you start

* You know which segment to change. Use the search box on the **Segments** list to find it by name.
* Your plan includes editing segments. If **Save** shows a lock on the segment page, ask your account owner to unlock it.
* A rule change affects everything that targets the segment: continuous campaigns, workflows, product blocks, banners and segment syncs pick up the new rules on their next run.

## Steps

1. Go to **Data Platform › Segments**.

   ![Step 1](https://releva.ai/documentation/_astro/step-1.DyqbMHSW_Z64d2w.webp)

2. Select the name of the segment you want to change.

   ![Step 2](https://releva.ai/documentation/_astro/step-2.CQn3_gDN_Z1t2AKG.webp)

3. The segment opens with its current size in the count line.

   The line shows the number of profiles, then how many of them you can reach by e-mail, SMS, push, Facebook and Google.

   ![Step 3](https://releva.ai/documentation/_astro/step-3.DBiTVXDK_Z2jTtd6.webp)

4. Find the rule to change. Select the rule name to open it if it is closed, then select **Add Filters**.

   Only the last rule opens by default. **×** on the right of a rule removes it; **×** next to a filter removes just that filter.

   ![Step 4](https://releva.ai/documentation/_astro/step-4.CNzV4nl1_1pvKKk.webp)

5. Search for **Days ago** and select it.

   ![Step 5](https://releva.ai/documentation/_astro/step-5.BV1CJd2-_Z1lB86q.webp)

6. In **Days ago**, enter **3** and **0**.

   The rule now keeps only people who viewed a product in the last 3 days. The count line changes to **Calculate Segment** because the rules changed.

   ![Step 6](https://releva.ai/documentation/_astro/step-6.DcVcLdGV_jlW31.webp)

7. Select **Calculate Segment**. The new count shows how many profiles the changed rule keeps.

   In this example the segment drops from 41 to 31 profiles. Calculating is optional; it does not save anything.

   ![Step 7](https://releva.ai/documentation/_astro/step-7.7V9aopdr_wnEIl.webp)

8. Select **Save**.

   ![Step 8](https://releva.ai/documentation/_astro/step-8.lsPP6O05_15YEYs.webp)

9. You are back on the segment list. Open the segment again to check that the filter is there.

   ![Step 9](https://releva.ai/documentation/_astro/step-9.Bj7P1SSY_1YaoVj.webp)

## Check it worked

* The segment’s card still shows the same rule names under **Rules:**. Filters are not listed on the card.
* The profile count on the card is the last stored count. It changes when the segment is calculated again, for example on the next run of a campaign that uses it.
* Open the segment: the rule shows the **Days ago** filter with **3** in the first box. The second box shows **0** or is empty; both mean “until today”.
* The history badge next to the scope badge shows the new **Updated** time when you hover over it.

## Troubleshooting

**I cannot select another scope.** The scope is fixed after the first save. Select **Make a copy** to create a new segment from these rules, then set the scope on the copy before you add rules.

**The rule I want to change is collapsed.** Select the rule name to expand it. Only the last rule in the list starts expanded.

**I need to copy the segment to another shop.** Select **Make a copy**. With access to one shop it opens a new segment named **Copy of \<name>** in the same shop. With several shops it opens **Copy Segment** with the current shop selected as **Target Domain**. A copy into the same shop is named **Copy of \<name>**; a copy into another shop keeps the original name.

**Delete asks about campaigns and workflows.** Deleting a segment also deletes every campaign, workflow, product block, banner and Facebook product set that targets it. Select **Close** to keep the segment, or **Confirm** to delete all of them.

**The rules of a Facebook or Google segment are read-only.** Audience rules for those scopes cannot be edited after the first save. Create a new segment instead.

## Next steps

* [Create a segment](https://releva.ai/documentation/guides/segments/create-a-segment/): Build a new Behavior segment and check who matches before you save.
* [Track a segment in Audience Performance](https://releva.ai/documentation/guides/segments/track-a-segment-in-audience-performance/): Star the segment to follow its members, conversions and conversion value in Analytics.
* [How segments work](https://releva.ai/documentation/learn/segments/how-segments-work/): Learn how rules and filters combine and what Calculate Segment and Export Segment do.