Skip to main content

Filters

Filters are subsets of users grouped according to specific characteristics. For example, selected users can be extracted from the database and included in a test filter. The filter can then be used to test a campaign before sending it to all users in the database. Test sends are automatically sent to a maximum of 30 users. If the test filter contains more than 30 users, the first 30 are selected.

Filters are useful when different groups of users need to receive different content. For example, a database can contain both Italian and English users. Instead of creating two separate databases, create a single database with a LANGUAGE field and then create a filter called English users. The filter includes all records where the LANGUAGE field contains the value EN. When an English campaign is sent, select the English users filter instead of All users.

To create a new filter, select the + Create new filter icon from the database menu.

New filter

A table with five tabs is displayed, based on the filter creation method: Simple, Intermediate, Advanced, SQL, and Combined.

warning

Once a filter has been created using one of these methods, it can only be modified using the same method. For example, a filter created in Simple mode can only be modified in Simple mode, not in Intermediate or Advanced mode.

1) Simple mode

The Simple mode filter creation tab appears as follows:

Simple mode

Use the drop-down menus to set the conditions that users must meet to be included in the filter. In this example, the filter includes all users whose Gender field is equal to F.
Simple mode allows up to 10 conditions. For filters that require more conditions, use one of the other modes.
If the filter is used for actual campaigns, select the Real deliveries checkbox. If the filter contains addresses for test sends, select Test deliveries. The test filter then appears in the appropriate drop-down menu at the end of the delivery creation process.
If more than one condition is added, select one of the following options from the My filter must satisfy drop-down menu:

  • All conditions: the target must meet all the specified conditions, such as gender = F AND language = ITA;
  • At least one condition: the target must meet at least one of the specified conditions, such as email = mario.rossi@gmail.com OR email = giovanni.bianchi@gmail.com.

Selecting Calculate displays the total number of users matching the filter conditions and the number of unique users, excluding duplicates.
Selecting Preview displays 10 sample records to verify the results.

2) Intermediate mode

Intermediate mode is useful when the database contains fields with a limited number of possible values. For example, the Gender field may contain two possible values, while the Region field may contain around 20. Each value can be associated with a large number of users.

info

Before using Intermediate mode, configure the filterable fields in the database.

To configure the fields, open the database control panel and select Field management. Select the fields to use and enable the Filter option.

Use fields with low cardinality, meaning fields with a limited number of values distributed across many users. Fields with different values for every record, such as firstname, lastname, or address, are not suitable.

See the Configuration section.

Field management

Then go to Filter management > Create new filter. Selecting Intermediate mode displays a screen like the following:

Intermediate mode

Intermediate mode makes it faster and easier to create a filter for all female users. Select the relevant checkboxes and choose whether the filter must meet all conditions or at least one condition, as in Simple mode.

3) Advanced mode

Advanced mode allows three types of rules to be added:

  • rules based on all database fields;
  • rules based on date fields;
  • rules based on user activity fields, if activity monitoring is enabled.

Conditions and rules can be combined to create complex filters without using SQL syntax. For example, filters can be based on birth dates to send birthday greetings or on registration dates to manage welcome emails. Both AND and OR conditions can be used.

Advanced mode

4) SQL mode

SQL mode allows the SQL query used to define the filter conditions to be entered directly. Knowledge of the correct SQL syntax is required.
The query is always a SELECT query, so it does not need to be specified.

SQL mode

5) Combined mode

Combined mode allows previously created filters to be combined using AND, OR, or EXCEPT.
Select one of the following options from the drop-down menu:

  • all selected filters;
  • at least one of the selected filters;
  • the first selected filter, excluding all other selected filters.

Add all the required filters using the drop-down menu below.

Combined mode

warning

A combined filter is not dynamic. If one of the filters included in the combined filter is updated, the combined filter remains unchanged.

Manage filters​

To access the list of created filters, select the corresponding button in the top-right corner of the database control panel.

Manage filters

Filters can be copied, archived, or deleted by selecting the corresponding button next to a filter. Multiple filters can also be selected and managed at the same time.

Active filters

Selecting a filter name opens its control panel. From here, the list of users matching the filter can be searched, viewed, or downloaded.
The marking, quality control, data cleaning, and column update tools can also be used for the users included in the selected filter only, rather than for the entire database.

Filters panel