Filtering your data ensures that only the data you want to see in your final report surfaces there. Any metric or dimension in a data source can be used as a filter.
Follow these steps to start using filters with your Supermetrics queries in Excel.
Instructions
You can add as many filters to a query as you need. A filter will only apply to the query that includes it, and no others.
- Open the Supermetrics sidebar in Excel.
- Navigate to the Filter section.
- Add the field you want to filter by in the first field.
- Add your operator and then your filter string.
For example, the field “Campaign name” with the operator “Equals” and the filter string “Enterprise” would create a filter that only shows data for campaigns with the name “Enterprise” when you run the query. - Click Get Data (or Update, if the filter is being applied to an existing query) to run your query with the filter.
About operators
When creating strings that include any of these operators, please note that some ignore a word’s capitalization while some don’t.
Equals, Does not equal, Contains, and Does not contain ignore a word’s case, so “TOFU 2020” and “tofu 2020” would show the same results.
However, Matches regex and Does not match regex filter values based on the string’s case, so when using either of these operators, “TOFU 2020” and “tofu 2020” would return different results.
Does not equal is the direct opposite of Equals. This operator will leave out matching results.
Letter case is irrelevant in Does not equal (so “TOFU 2020” and “tofu 2020” would return the same results).
The Matches regex operator takes the regular expression string you enter into the value field and compares it to the results, leaving in the results that match your regex string.
There are many resources available to learn more about regular expressions. For example, RegexOne offers a simple tutorial with interactive exercises.
Troubleshooting
If you’re having trouble getting your filter to work properly, check these settings.
Whitespace
An extra whitespace (a space between letters, numbers, or words, sometimes left at the beginning or end of a string) can stop a filter from reading the value field string properly. Check for extra whitespaces and remove them.
Old fields
Sometimes, a filter set up in the past can contain fields that aren’t supported any longer. Check our field list to make sure your filter’s fields are still valid.