Skip to main content

Split fields

Turn delimited text into a list. Many tables keep several values in one text column: Sport, Travel, Food in an interests column, red|blue in a colours column. A Split field cuts that text at a delimiter and gives you a list of values for every row, so each value can be filtered, matched and exported on its own.

In the platform the result type of a Split field is shown as Text list. Like the other row-level types, a Split field adds a virtual column to its source table: nothing is copied and nothing is scheduled.


Configuration​

SettingWhat it means
Source fieldA text column of the source table. List (array) columns and other calculated fields are not offered.
DelimiterThe character(s) the text is cut at. Pick a preset — , ; | / — or type a custom delimiter of 1 to 10 characters. The delimiter is used literally, exactly as typed, including spaces.
Trim spacesRemoves leading and trailing spaces from each value. On by default.
Remove empty valuesDrops values that are empty (for example, the gap in a,,b). On by default.
Remove duplicatesKeeps only the first occurrence of each value. The order of the values is kept.
LowercaseConverts every value to lowercase.

The options are applied in this order: each value is trimmed and lowercased first, then empty values and duplicates are removed. So Sport and sport count as the same value when both Trim spaces and Lowercase are on.

An empty or NULL source value gives an empty list.

Example​

Source value: Sport, Travel, Food, , sport, delimiter ,, with Trim spaces, Remove empty values, Remove duplicates and Lowercase on:

StepValues
Split at ,Sport · Travel · Food · · sport
Trim and lowercasesport · travel · food · (empty) · sport
Remove empty values and duplicatessport · travel · food

The builder has a live example: type a sample value and see the resulting values as chips, with their count, while you change the delimiter and the options. The Sample output preview on the right shows the same chips for real rows of the source table; an empty list is shown as "—".

A Split field: pick the delimiter and the options, the live example shows the resulting values

Using a list field​

Once the field is Active (and Visible in platform), it can be used like any other list field.

Audience filters​

A Split field appears in the audience filter builder, on user tables and on event tables, with these operators:

OperatorMatches rows whose list…
incontains at least one of the chosen values.
not incontains none of the chosen values.
containshas at least one value containing the text.
not containshas no value containing the text.
is nullis empty (no values).
is not nullhas at least one value.

The operator list also shows is / is not: to check whether a list is empty, use is null / is not null.

The operators work on the single values of the list, not on the original text — so in: travel matches Sport, Travel, Food without any wildcard.

On a user table every user has one row, so not in and not contains keep the users whose list has none of the values. On an event table the check is made row by row: a user is kept if at least one of their rows matches. For example, on a purchases table not in: sport keeps everyone who has at least one purchase without sport, even if other purchases of theirs contain it.

Once the field is indexed for AI match (see below), the AI match and AI match (exclude) operators are offered too. Like not in, AI match (exclude) is applied row by row on an event table.

AI match​

AI match finds the values of a field from a description in your own words (for example, "outdoor activities"). For a Split field it is switched on per field:

  1. A BPP superuser opens the field's editor and turns on AI match in the AI match box. The field must be Active: on a draft, suspended or unsaved field the toggle is disabled with a hint such as "Activate the field to enable AI match". The source table must also be a table about people (with a user ID).
  2. The status moves from Indexing to Ready. From then on the AI match and AI match (exclude) operators are offered for the field in the audience filter builder.

The Field Builder list has an AI match column showing the status of each field — Indexing, Partial, Ready or Error — or "—" when AI match is off. Everyone can see the column; only superusers can turn AI match on or off.

The AI match box of a Split field: the superuser toggle and the Ready status

Profiles Sync​

A Split field can be exported by a Profiles Sync as an attribute, not as a matching key. Profiles Sync offers only the fields of user-level tables, so a Split field on an event table cannot be exported. Each destination writes the list in its own way:

DestinationWhat is written
BigQueryA native list column (REPEATED STRING).
KlaviyoA list property on the profile.
BrevoOne text with the values joined by a comma and a space (sport, travel, food). The Brevo contact attribute must be of type Text.

BigQuery tables created before the column was a list: by default a Profiles Sync run replaces the whole BigQuery table, schema included, so a column that was plain text becomes a list column on the next run. If the destination is set to append to the table instead, BigQuery cannot change an existing column from text to list (or back): the run fails with a configuration error naming the column. Drop or rename the column in the BigQuery table, or write to a new table, and run the sync again.


Limits​

  • Changing the delimiter or the options changes the values of the list: AI match re-indexes the field on its next run.
  • Suspending the field turns AI match off. After you activate the field again, a superuser has to re-enable AI match.
  • One literal delimiter only: regular expressions and multiple delimiters (for example, ", or ;") are not supported. If your data mixes delimiters, normalise the column upstream or pick the one that is used most.
  • The source field must be a text column: list columns, number columns and other calculated fields cannot be split.