# Saved filters

A saved filter is a cost filter kept under a title. A folder reads every report filed in it through its saved filter, and a dashboard reads every report widget through its own, each on top of the report's own filter. The **Saved filters** page under **Reporting** lists the workspace's saved filters, each with its conditions written as CQL.

<Framed caption="Saved filters with four filters, one the workspace's default.">
  ![The Saved filters page listing AWS Resources, marked Default, Compute Services, EC2 or Kubernetes and Kubernetes, each with its filter as CQL, its creation date and the pencil and bin buttons](/screenshots/en/saved-filters-list.png)
</Framed>

## Before you start

Creating, editing and deleting saved filters needs the Editor team role in a workspace your team can edit; anyone who can view the workspace's cost reports sees the list. See [Access model](/concepts/access-model).

## Create a saved filter

<Stepper>

1. Open **Reporting**, then **Saved filters**, and select **New saved filter**.
2. Under **Title**, name the filter.
3. Under **Conditions**, select **Add filter** and choose a field and its values, or select **Edit as text** and write the filter as CQL, OR included. See [Filter with CQL](/cost-reports/filter-language).
4. Select **Create**.

</Stepper>

A saved filter needs at least one condition: without one, **Create** says "Add at least one condition." and nothing is saved.

## Edit or delete a saved filter

<Stepper>

1. Select the pencil on the filter's row, change its title or conditions, and select **Save**.
2. To delete it, select the bin on its row, then **Delete** in "Delete saved filter?".

</Stepper>

## Use a saved filter

- A folder: see [Read a folder's reports through a saved filter](/reporting/folders#read-a-folders-reports-through-a-saved-filter).
- A dashboard: choose it under **Saved filter** above the widgets. See [Overview and dashboards](/reporting/dashboards).

## How it behaves

- A folder or a dashboard reads its saved filter as it is when a report is read, so an edit reaches every report under it at once.
- While a folder or a dashboard reads through a saved filter, deleting it is refused and the message names each of them: detach it from them, or delete them, first.
- Saved filters are also created and changed through the Public API (`/v1/saved-filters`) and the Terraform provider's `costfluent_saved_filter` resource.

## Related

- [Filter with CQL](/cost-reports/filter-language)
- [Folders](/reporting/folders)
- [Overview and dashboards](/reporting/dashboards)
- [Split cost by environment](/guides/cost-by-environment)
- [Track the cost of a project, launch or migration](/guides/track-a-project-cost)
