How to

Question Variables

Configure question variables so saved queries can accept dates, date ranges, selects, and other reusable inputs without editing the SQL each time.

Updated August 19, 2026

Question variables let you turn parts of a query into reusable inputs. When a query includes placeholders such as {{start_date}} or {{region}}, FireAI shows them in the Variable Settings panel so you can choose the right input type and default value.

Open variable settings

  1. Open a question or query in the editor.
  2. Add variables in the query using the {{variable_name}} format.
  3. Open Variable Settings to choose the variable type and default value for each placeholder.

Copy filters from another widget

Use Copy filters from… under the Variable Settings heading when you want this widget to reuse another widget’s filter configuration for placeholders already in your SQL.

  1. Add the {{variable_name}} placeholders you need in the query first.
  2. Click Copy filters from… and select the source widget.
  3. FireAI copies matching filters only (names must appear in your query):
    • Filters that are still fully empty on this widget are applied automatically.
    • Filters that already have configuration prompt you to Replace or Keep existing.
    • When several filters conflict, check the ones you care about, then choose Keep selected or Replace selected.

Removing a placeholder from the SQL removes its Variable Settings entry automatically.

Configure widget variables

For Widget variables, choose a source widget from the picker. Master widgets appear first and are marked with a star.

Click the open icon next to a widget in the list, or next to the dropdown after a widget is selected, to inspect it in the Query Editor in a new tab without replacing the query you are editing.

Configure date range variables

For Date Range variables, you can choose a preset such as Week Range, Month Range, or Year Range, or switch to Custom Date Range.

  • In preset modes, clicking a day expands the value to the full week, month, or year for that selection.
  • In custom mode, select the start and end dates directly.
  • The calendar popup includes Apply and Reset, so draft changes are only saved when you confirm them.