How Filters Work
On most platforms, Detrics fetches your data first and then removes the rows that don’t match your filters. Because the filtering happens on the Detrics side, the rules below apply consistently regardless of the data source. Some platforms have a native filtering module, and Detrics is connected to it: on Google Ads, Google Analytics 4, Meta Ads, and Shopify, your filters are translated into the platform’s own filtering language and applied at the source whenever possible. The results are the same; the query is just faster because the platform sends only the matching rows. Native translation is used only when your filters map cleanly to what the platform supports. In particular, filter chains that mix AND and OR are always evaluated by Detrics itself, so the combining rules described below hold on every platform. There are two kinds of filters:- Dimension filters compare text values (campaign name, country, device)
- Metric filters compare numbers (spend, impressions, conversions)
Dimension Filter Operators
About Regex Contains
Despite the name, Regex Contains does not accept full regular expression syntax. It accepts a list of plain texts separated by|, and keeps a row when the value contains any of them. Spaces around each text are ignored, and you can optionally wrap the whole list in parentheses: (sale|promo) works the same as sale|promo.
Regex syntax such as ^, $, .*, or character classes is treated as literal text, so ^Brand.* looks for a value that literally contains “^Brand.*”.
Regex Contains Exact uses the same | list, but the value must match one of the texts entirely instead of just containing it.
Google Ads is the one exception: when a Regex Contains filter is applied natively at the source, it supports full regular expression syntax and matches case-insensitively. If you need the same filter to behave identically across platforms, stick to the
| list of plain texts.Metric Filter Operators
Metric values are compared as numbers. A row with an empty metric counts as
0, so Greater Than 0 is a handy way to remove empty rows.
Combining Filters
You can chain several filters with AND / OR:- AND: the row must pass both conditions
- OR: the row must pass at least one
Filtering on Fields Not in Your Query
As a general rule, a filter references a field that is part of the query: if you filter onCampaign Name, Campaign Name should be one of your selected dimensions.
Three platforms also support dimensionless filtering, where you can filter on a dimension without selecting it:
- Google Analytics 4
- Meta Ads
- Shopify
Empty Values
- An empty or missing dimension is treated as empty text (
"") - An empty or missing metric is treated as
0 - Boolean dimensions (true/false fields) are the one case-insensitive exception:
true,True, andTRUEall match