> ## Documentation Index
> Fetch the complete documentation index at: https://docs.segmentstream.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data filtering

> Filter attribution report data by date ranges and dimension values to focus on the metrics that matter.

SegmentStream lets you filter data in two ways: by date and by dimension values.

<Note>
  SegmentStream does not currently support filtering based on metric values.
</Note>

## Filtering by date

To filter data in charts and tables by date:

<Steps>
  <Step title="Open the calendar widget">
    Click the calendar widget at the top left corner.
  </Step>

  <Step title="Select a date range">
    Choose from the predefined ranges:

    * Yesterday
    * Last 7 days
    * Last 14 days
    * Last 28 days
    * Last 30 days
    * Last 90 days
    * Last 12 months
    * Custom

    The **Custom** option lets you define any specific time period using the calendar control.
  </Step>
</Steps>

<img src="https://mintcdn.com/segmentstream/d8ABOFFwUMo4IrD2/images/attribution/date-filter.png?fit=max&auto=format&n=d8ABOFFwUMo4IrD2&q=85&s=558fdafb9fb9779301fecc91aa1af584" alt="Date filter widget" width="2394" height="1531" data-path="images/attribution/date-filter.png" />

### Comparing time periods

To compare metrics from different periods:

<Steps>
  <Step title="Enable comparison mode">
    Click the **compare** option in the date filter dropdown.
  </Step>

  <Step title="Choose a comparison range">
    Select from the available options:

    * **Preceding period** -- automatically selects a period equal in length to the one you defined.
    * **Preceding period (match day of week)** -- matches in length and starts on the same day of the week.
    * **Same period last year** -- a year-over-year comparison.
    * **Same period last year (match day of week)** -- year-over-year comparison aligned by day of the week.
    * **Custom** -- define your own preceding period using the input fields at the top of the date filter dropdown.
  </Step>
</Steps>

When comparison mode is enabled, each metric table cell displays:

* The value for the current period at the top.
* The value from the compared period at the bottom.
* The calculated difference between the two values.

<Note>
  Charts do not support comparison mode. Charts display data only for the selected current period.
</Note>

## Filtering by dimension values

To filter data in charts and tables based on dimension values:

<Steps>
  <Step title="Open the filters panel">
    Below the chart, click the **Filters not set** button. This displays a window for configuring advanced filters.
  </Step>

  <Step title="Define filter rules">
    Each filter row represents a rule. For example, to view data only for visitors from the UK:

    * Select dimension: `Country`
    * Choose operator: `is equal to`
    * Pick the value for the UK from the dropdown list.
  </Step>

  <Step title="Apply the filter">
    Click the **Apply** button.
  </Step>
</Steps>

You can create multiple rules and connect them using **AND** or **OR** logic.

Examples:

* Display results where `Ad platform is equal to Facebook Ads` AND `Country is equal to United Kingdom`
* Display data where `Country is equal to United Kingdom` OR `Country is equal to US`
* View campaigns with "ES" in their name using `Campaign contains ES`

<img src="https://mintcdn.com/segmentstream/d8ABOFFwUMo4IrD2/images/attribution/dimension-filter.png?fit=max&auto=format&n=d8ABOFFwUMo4IrD2&q=85&s=47ce8f9de39335fd83bb565fd9bc972c" alt="Dimension value filter" width="2392" height="1536" data-path="images/attribution/dimension-filter.png" />
