Advanced Segment Rules
Go beyond basic rules with AND/OR logic, nested conditions, and relative dates.
AND vs OR logic
AND logic (default)
All rules must match. Customers must satisfy every condition.
Example: High-value at-risk customers
- Membership Tier equals "Platinum" AND
- Churn Risk greater than 60
Result: Only Platinum members with high churn risk
OR logic
Any rule can match. Customers satisfy at least one condition.
Example: Premium members (any tier)
- Membership Tier equals "Platinum" OR
- Membership Tier equals "Gold"
Result: All Platinum and Gold members
Switching between AND/OR
- Look for the logic toggle between rules
- Click to switch from AND to OR (or vice versa)
- Preview updates automatically
Be careful with OR logic - it typically results in larger segments. Always preview before saving.
Combining AND and OR
Use rule groups for complex logic.
Example: Active premium members
(Tier = "Platinum" OR Tier = "Gold")
AND
(Status = "Active")
AND
(Engagement > 50)
Creating rule groups
- Click Add Group
- Add rules within the group
- Rules in a group use OR logic
- Groups are combined with AND
Relative dates
Instead of fixed dates, use relative dates that update automatically.
Relative date options
| Option | Meaning |
|---|---|
| Today | Current date |
| X days ago | Past date relative to today |
| X days from now | Future date relative to today |
| This week | Current week (Mon-Sun) |
| This month | Current calendar month |
| This year | Current calendar year |
| Last X days | Range from X days ago to today |
Examples
| Rule | Meaning |
|---|---|
| Last booking before "60 days ago" | Hasn't booked in 60+ days |
| Joined after "30 days ago" | New in the last month |
| Birthday in "This month" | Birthday this calendar month |
| Renewal before "30 days from now" | Renewal coming up |
Use relative dates for evergreen segments. "Joined in last 30 days" always captures new members, while "Joined after 2024-01-01" becomes outdated.
Checking for empty/missing data
Is empty
Find customers missing data:
- Phone is empty → Customers without phone numbers
- Email is empty → Customers without email
Is not empty
Find customers with data:
- Phone is not empty → Customers with phone numbers
- SCL Member ID is not empty → Linked to membership
Negation rules
NOT equals
Exclude specific values:
- Tier not equals "Bronze" → Everyone except Bronze
NOT in list
Exclude multiple values:
- Tier not in ["Bronze", "Silver"] → Gold and Platinum only
Combining multiple approaches
Complex example: Re-engagement campaign targets
Target:
(
(Engagement < 40 OR Churn Risk > 50)
AND
Status = "Active"
AND
Last Activity before "30 days ago"
AND
Email is not empty
)
Exclude:
Has active journey = true
This finds:
- Active customers
- With low engagement OR high churn risk
- Who haven't been active in 30 days
- Who have email addresses
- Who aren't already in a journey
Testing complex rules
Use preview liberally
- Check member count after each rule
- Compare against expected size
- Review sample members
Build incrementally
- Start with one rule
- Preview
- Add another rule
- Preview again
- Repeat until complete
Check edge cases
- What happens at boundaries?
- Are the right people included?
- Are the wrong people excluded?
Common advanced patterns
Recency-Frequency combo
Last booking in last 30 days
AND
Bookings in last 90 days >= 3
Active and frequent customers
Score band targeting
Engagement between 40 and 60
AND
Churn Risk between 30 and 50
Middle-ground customers who could go either way
Channel preference
Email opens in last 30 days > 0
AND
SMS clicks = 0
Prefers email over SMS
Next steps
- Segment Best Practices - Expert tips
- Journey Triggers - Trigger journeys from segments
- Campaign Targeting - Use segments in campaigns