Segmentation filter semantics
This page explains how common segment filters evaluate—for example, whether
less than 1 day agomeans calendar today or a rolling 24 hours, how blank custom attributes match, and how Canvas retargeting filters differ from live membership. For the full filter glossary, see Segmentation filters. For lookback limits by filter type, see Time-based filter lookback windows.
Date and time filters
Relative date filters on Time custom attributes use rolling windows in your company time zone, not calendar weeks or calendar months. Time custom attributes offer days and weeks; some other date filters, such as Last Did Custom Event, also offer hours.
| Filter wording | What matches | Inclusive of the boundary? |
|---|---|---|
less than X days or weeks ago |
The timestamp is on or after (now − X) and on or before now | Yes—values exactly X ago match |
more than X days or weeks ago |
The timestamp is on or before (now − X) | Yes—values exactly X ago match |
in less than X days or weeks |
The timestamp is on or after now and on or before (now + X) | Yes |
in more than X days or weeks |
The timestamp is on or after (now + X) | Yes |
before or after a calendar date |
Compares the stored timestamp to that date | before is exclusive of the date; after is exclusive of the date |
is not blank or is blank |
Attribute is present with a non-blank value, or missing, blank, or null | — |
For example:
- Today for a Time custom attribute (full timestamp): Use
less than 1 day ago(rolling 24 hours in company time). This is not the same as calendar today. - Today for month and day only (annual event): Use Day of Recurring Event or, for the standard birthday field, the Birthday filter with
is today. Those filters compare month and day and ignore year. For more information, see Day of Recurring Event and Birthday. - This calendar week: There is no this-calendar-week operator on Time attributes. Approximate with a rolling window (for example,
less than 7 days ago), or use absoluteafterorbeforedates for the week you want. - Today for a nested date attribute: Choose Day of Year for month and day matching, or Time for the full timestamp with the operators in Date and time filters. For more information, see Nested custom attributes.
X-in-Y filters (calendar days)
Filters such as X Custom Event In Y Days use calendar days in UTC, not rolling 24-hour periods. “In Y days” covers today (UTC) plus the previous Y full UTC days, so the window is between Y × 24 and (Y + 1) × 24 hours long, depending on when the segment is evaluated. For more information, see X-in-Y filter behavior.
Nested Time attributes: Day of Year versus Time
| Mode | Compares | Typical use |
|---|---|---|
| Day of Year | Month and day only | Annual dates (is today, in less than 5 days) |
| Time | Full timestamp including year | Relative recency (less than 6 days ago) |
Maximum lookback for relative Time comparisons is 100 years. Company time zone applies unless the message uses local-time scheduling for day-of-year today checks. For more information, see Day of Recurring Event.
Blank and missing attributes on negative filters
For string (and multi-value) custom attributes:
| Operator | Users with a matching value | Users where the attribute is blank, null, or missing |
|---|---|---|
is any of, equals, or contains any of |
Match | Do not match |
is none of, does not equal, or does not contain any of |
Do not match | Match (treated as not equal to the listed values) |
does not match regex |
Do not match | Do not match null or missing values |
is not blank |
Match only if a non-blank value is present | Do not match |
is blank |
Do not match | Match |
For example:
- Custom attribute
planwithis none ofenterprise: Includes users whoseplanis something else and users with noplanvalue. - To exclude missing values from a negative filter, combine with
ANDandis not blank(or an equivalent positive filter), so blank profiles drop out. - To target only missing values, use
is blank, notis none of.

Negative filters can make a segment much larger than expected when using the OR operator, because missing profiles often match every negative clause.
App version and OS version
Which filter to use
| Goal | Filter |
|---|---|
Compare marketing or version name strings (for example, 3.7.0) |
Most Recent App Version Name |
Compare numeric version codes (values inside parentheses, for example 134.0.0.0) |
Most Recent App Version Number |
| Exact OS string on a device | Device OS |
| OS version ranges (iOS, Android, and other supported platforms) | Device OS Version Number |
| Only Android (or another platform) users | Combine Has App or app-specific filters with Device OS for that platform |
Missing version data
- Most Recent App Version Name compares text. It offers
is,is not,matches regex, anddoes not match regex, and has no greater-than or less-than operators. - Most Recent App Version Number compares the four-part version code (for example,
134.0.0.0) one part at a time. It offersis,is not, and the Version Number operators in this table.
| Operator | Matches when |
|---|---|
Version Number is above |
Version code is greater than the selected value |
Version Number is above or equal to |
Version code is greater than or equal to the selected value |
Version Number is below |
Version code is less than the selected value |
Version Number is below or equal to |
Version code is less than or equal to the selected value |
- Missing version codes also match Version Number
is below. Missing version codes also match Version Numberis below or equal to. In a workspace with one app, that includes users with no app data at all. In a workspace with several apps, it includes only users who have the selected app but no version code. - To exclude unknown versions, prefer Version Number
is above. You can also use Version Numberis above or equal to, oris. - For Most Recent App Version Name and Most Recent App Version Number, version values appear after the SDK reports them (usually when the user opens the app). Versions are not applied retroactively to older sessions.
- Profiles can have multiple devices. On Device OS and Device OS Version Number, positive operators (such as
isoris any of) match if any device matches. Negative operators (such asis notoris none of) match only if no device matches. - Device OS Version Number asks you to pick a platform and checks only that platform’s devices.
- Most Recent App Version Number checks one app. Most Recent App Version Name also offers All Apps, which matches if the latest version of any one app matches.
Why a new version is missing from the dropdown
The dropdown is populated from versions Braze has already observed for that app. A just-released version appears after at least one session reports it. Until then, use Most Recent App Version Number with is above the last known version code, or Most Recent App Version Name with matches regex.
Birthday, Age, and Age Group
| Concept | What it is | Segment filter? |
|---|---|---|
| Birthday | Standard dob month and day (day-of-year) |
Yes—Birthday |
| Age | Derived from dob (see Age filter for how it compares) |
Yes—Age (exactly, older than, or younger than) |
| Age Group | Display bucket on the user profile only | No—not a segment filter |
Birthday filter
- Evaluates month and day only (ignores year), so relative wording such as
in less than 5 weeksormore than 2 days agoworks for annual campaigns. - February 29 birthdays are included with March 1 segments.
- For December or January targeting, keep filter logic inside a single 12-month span (do not look across the year boundary incorrectly). For more information, see Birthday.
Age filter
- The filter compares date of birth to a cutoff: today’s date in UTC minus the number of years you enter. It does not use the company time zone.
older than 30matches users born before the cutoff. That includes users who are already 30 (calendar age), except on their 30th birthday—on that day they matchexactly 30instead.younger than 30matches users born after the cutoff: 29 and under.exactly 30matches only users whose 30th birthday is today.- Profiles without a date of birth do not match positive Age comparisons. When an Age filter is inverted in query logic, profiles without a date of birth are always included—do not use inversion as a substitute for an explicit blank filter.
Blank birthdays
The Birthday and Age filters do not offer an is blank operator. Users with no dob never match positive Birthday or Age criteria.
Target users without a birthday
- Stamp a custom attribute (for example,
has_birthday) with a User Update step whendobis set, then segment with that attribute using theis not blankoris blankoperator. - Export or query users and filter where
dobis missing outside the segmenter (CSV export, Query Builder, or your warehouse).
Age Group values (profile display only)
Age Group on the user profile is derived from dob for display. It is not available as a segmentation filter. Buckets:
| Age Group label | Ages included |
|---|---|
| 21 and under | 0–21 |
| 22-34 | 22–34 |
| 35-44 | 35–44 |
| 45+ | 45 and older |
If dob is missing, Age Group is blank on the profile. To segment by these ranges, combine Age filters with AND (and OR for the birthday edge case). Because older than N excludes users whose Nth birthday is today, include exactly N when you need age N on that day:
- 22-34: (
older than 22ORexactly 22) ANDyounger than 35 - 21 and under:
younger than 22 - 45+:
older than 45ORexactly 45
Age Group on the profile counts years differently from the Age filter (elapsed seconds divided by an average year length, versus the filter’s calendar cutoff). For a few days around someone’s birthday, the profile Age Group can disagree with what these filters match.
Canvas and campaign retargeting filters
Filter comparison
| Filter | Matches | Time window in the filter UI | Notes |
|---|---|---|---|
| Received Message from Canvas Step | User received (channel-specific definition) a specific message step | Has or has not (lifetime for that step), unless you use a Last Received… filter | Message steps only—not Delay, Audience Path, or other non-message steps |
| Last Received Message from Specific Canvas Step | When that step was last received | Relative or absolute dates; max lookback 100 years | Does not consider other steps |
| Entered Canvas Variation | User entered a variation (including control, depending on selection) | Has or has not entered (lifetime). No recency operator | Evaluates all users; has not entered includes people who never entered the Canvas |
| Received Message from Campaign | User received a specific campaign | Has or has not | See What received means by channel |
| Last Received Message from Specific Campaign | When that campaign was last received | Relative or absolute; max 100 years | — |
| Received or Last Received … with Tag | Any campaign or Canvas with the tag | Has or has not, or last-received timing | Campaigns and Canvases with the tag share a limit of 200; see Engagement, stopped campaigns, and unsubscribes |
| Clicked/Opened Campaign, Step, or Tag | Opens or clicks (channel-specific) | Has or has not for the selected object | Closing an in-app message with the X does not count as a click |
For more retargeting filter walkthroughs, see Retarget campaigns.
What received means by channel
| Channel | Counts as received when |
|---|---|
| Send request is handed to the email service provider (not necessarily delivered) | |
| Push, webhook | Message is sent |
| SMS, RCS | Send time (even if delivery to the device fails) |
| API request is sent to WhatsApp (not device delivery) | |
| Content Cards, Banners, in-app messages | User logs an impression, not at send time |
Shared channel identifiers (same email or phone on multiple profiles) can update sibling profiles when delivery, open, or click events occur. To target users by Canvas entry without that side effect, use Entered Canvas Variation.
Why a Canvas or step is missing or disabled
Retargeting selectors only offer Canvases and steps that are still retargetable (interaction data has not been offloaded after the Canvas stopped and retention elapsed). Non-retargetable items can appear disabled. Non-message steps do not appear under Received Message from Canvas Step.
Currently in a Canvas or at a step
Braze does not provide a currently-in-Canvas or currently-at-step segment filter. Entered Canvas Variation and Received Message from Canvas Step are historical (lifetime or last-received), not live membership.
Approximate current Canvas membership
- User Update stamp: At Canvas entry or at a step, set a custom attribute (for example,
active_canvasequalspromo_flow) and clear it on exit, conversion, or an Exit step. Segment and suppress on that attribute. - Query Builder or Currents: Use Canvas entry, progression, and exit events for analysis or export. Aggregate Canvas analytics do not replace per-user step membership in the segmenter.
- Exclusion: To keep active Canvas users out of another campaign, exclude the stamped attribute or exclude users who recently received a step (Last Received Message from Specific Canvas Step within a short window)—knowing that last-received is not the same as currently waiting in a Delay step.
Engagement, stopped campaigns, and unsubscribes
| Topic | Behavior |
|---|---|
| Clicked/Opened lookback | Clicked/Opened filters are has or has not for the selected campaign, step, or tag. For time-bounded engagement, use Last Engaged With Message or channel-specific Last Received… filters (relative windows up to 100 years). |
| In-app engaged | Body and button clicks count. Dismiss or close (X) does not count as a click. |
| Content Cards | Use clicked-card options under Clicked/Opened filters; impressions drive received for cards. |
| Stopped or archived campaigns | You can still retarget while the campaign or Canvas remains retargetable. After retargeting data is offloaded, the object is not selectable (or appears disabled). |
| Tag-scoped filters | Campaigns and Canvases with the tag share a limit of 200. Only campaigns and Canvases that are still retargetable and aren’t deleted count. If more than 200 qualify, Braze uses the 200 most recently active. For Clicked/Opened Campaign or Canvas With Tag, each step of a tagged Canvas counts toward the 200. |
| Unsubscribe by campaign or link | Email Subscription Status, Email Unsubscribed Date, and subscription groups do not record which campaign or link caused the unsubscribe. Segment by status or unsubscribe date, or capture campaign context yourself (for example, a custom attribute set from a preference-center or webhook flow). |