Prerequisites
- A list open in MK, such as your people or companies list.
- Permission to edit lists, if you plan to save your changes. You can try a formula without saving it.
- A formula to try. If you are new to formulas, read What formulas are and when to use one first.
- The exact names of the fields you want to read. See How formulas find your data.
How a formula filter works
MK works out your formula once for every record. If the answer is true, the record stays. If the answer is false, the record leaves. A formula filter works together with any built-in filters on the list. A record must pass all of them to stay. Because the answer must be true or false, build your formula from comparisons and checks, such as==, >=, exists(), and .includes().
Steps
1
Open your list
Open the people or companies list you want to filter. The controls appear in the panel at the side of the list.
2
Find the Filters section
In the panel, find the Filters section. If the list has no filters yet, it reads “No filters — showing everything.”
3
Add a formula
Select + ƒx. A new row appears with an empty formula box.
4
Type your formula
Select the box and type your formula. For example, to keep people whose lifecycle stage is Replace
lead or mql:lead and mql with values from your own data.5
Apply the formula
Press Enter, or select outside the box. MK applies the formula when you do either one, not while you type.
6
Check the count
Look at the count next to the list title and at the rows. The list now shows only the records where the formula gave true.
7
Save your changes
To keep the filter, select Save. If you are working on an unsaved view, select Save view instead. A saved list keeps its filters and columns.
On a people list, saved lists may appear under the name Segments.
Try these examples
Each formula below works on a people list and uses standard fields. Replace the values with ones from your own data.
On a companies list, you can compare numbers:
Here is how the first people example works out for three people.
The check for an email comes first in these formulas on purpose. Without a check, a record with no value can pass a filter when you did not expect it. Handle blank and messy values in formulas explains why.
Change or remove a formula filter
- To change it, edit the text in the box, then press Enter or select outside the box.
- To remove it, select the remove button at the end of the formula row. The list goes back to showing the records the other filters allow.
If the list does not change
For more causes and fixes, see Formula gives a blank, wrong, or error result.
Related articles
- What formulas are and when to use one
- Add a calculated column to a list
- Handle blank and messy values in formulas
- Formula reference: concepts, functions, and operators