Spanish Total.js
English
Documentation For AI agents
Contents

Dynamic filters

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

.md GitHub
On this page

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 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

  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 lists the dynamic filters of each report, and you send their values when you load it. See Load a report.

Made in Europe