Sub topic 12
Filtering Rows to Focus the Analysis
Assume you can create a Free-form exploration and understand dimensions, metrics, segments, and event-based data. This chapter focuses on filters, which remove rows that do not match conditions. A filter helps you focus an exploration without changing the underlying GA4 data.
What an exploration filter does
A filter is a condition applied to a dimension or metric. For example, you can keep only rows where:
Device categoryexactly equalsmobileSession default channel groupcontainsOrganic SearchSessionsis greater than1,000
Filters are configured in Tab Settings. They affect the current exploration technique tab, not every report in the property.
A dimension filter selects records based on descriptive fields. A metric filter selects results based on measured values. In practice, dimension filters are useful for narrowing the subject, while metric filters remove low-volume or insignificant rows.
Add a dimension filter
Use this workflow to focus a Free-form table on mobile traffic:
- Open the exploration and select the relevant tab.
- In Tab Settings, find Filters.
- Click Add filter.
- Select the
Device categorydimension. - Choose a condition such as exactly matches.
- Enter
mobile. - Apply the filter.
The table now contains only rows calculated from mobile users or sessions, depending on the metrics you selected. If Session default channel group is in Rows, the table shows channel rows for mobile traffic only.
Combine conditions carefully
You can add multiple filters. GA4 evaluates the conditions together, so the result can become much smaller than expected. For example:
| Filter | Effect |
|---|---|
| Device category exactly matches mobile | Keeps mobile traffic |
| Sessions greater than 100 | Removes small channel rows |
Use a dimension in Rows before filtering it. This makes the result easier to inspect. If a filter returns no data, check the spelling, capitalization, date range, property, and whether the selected field is compatible with the metrics.
A filter is different from a segment. A filter narrows the current tab's output. A segment defines a group of users, sessions, or events that you can compare with another group. Use a filter when you want one focused result. Use segments when you want side-by-side comparisons.
Metric filters and common mistakes
Metric filters work on aggregated values. For example, filtering Sessions to greater than 100 removes rows whose total sessions do not pass that condition. It does not remove individual events before the session count is calculated.
Common mistakes include filtering the wrong scope, expecting a filter to alter other tabs, and using a metric filter when a segment is needed. Also check whether a filter is attached to the correct exploration tab. Each tab can have different Tab Settings.
Exercise
You need to compare all channels, but only for users whose device category is mobile. Should you use a filter or a segment?
Show answer
Use a dimension filter on Device category equal to mobile when you want one mobile-only table. Use a segment if you need to compare mobile users with another audience in the same exploration.