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 September 30, 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
- Open a question or query in the editor.
- Add variables in the query using the
{{variable_name}}format. - 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.
- Add the
{{variable_name}}placeholders you need in the query first. - Click Copy filters from… and select the source widget.
- 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, Year Range, or FY Range, or switch to Custom Date Range.
- In Week Range or Month Range, use the single-month calendar; clicking a day expands the value to the full week or month for that selection.
- In Year Range or FY Range, pick from a scrollable dropdown instead of the calendar. Year items look like 1st January 2024 - 31st December 2024. FY items look like 1st April 2024 - 31st March 2025.
- In custom mode, select the start and end dates from the two-month calendar.
- On the dashboard filter popup, Apply and Reset save or discard draft changes.
- Saved dates and presets stay aligned: stored dates win, and a mismatched preset is corrected to match that window (or inferred when the preset was never saved). Explicit Custom stays Custom.