---
title: Dynamic filters
project: OpenReports
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openreports/1-0/guides/dynamic-filters/
updated: 2026-11-19T07:46:43.430Z
---

# Dynamic filters

> Let people enter filter values, such as a country or a period, each time they open a report.

A dynamic filter has a variable instead of a fixed value. Each time someone opens the report, OpenReports asks for the value.

## Add a dynamic filter

1. [Add a filter](../filters/) to the report and select it.
2. In **Value**, write a label in curly brackets, for example `{Country}`. For **Between**, use two: `{From}; {To}`.
3. Select **SUBMIT**, then **SUBMIT** in the report form.

## Run the report

When you select the report, the **Dynamic filter** window lists one line for each variable.

![The Dynamic filter window asking for a country and a period](/files/JapUXa90s61f.webp)

1. Enter a value on each line and press Enter.
2. Select **SUBMIT**. The data window opens with the matching rows.

Date variables have a calendar icon and start with the current date and time. For **Between**, they start with the last day: from yesterday to now. Dates are in your local time.

The report keeps the variables. The values you enter are used only for that run.

## Through the API

The [API](../enable-api/) lists the dynamic filters of each report, and you send their values when you load it. See [Load a report](../../reference/api-load-report/).
