How to Apply Dynamic Default Filter Values in Superset Dashboards #36438
Replies: 1 comment
-
|
Superset does not natively support dynamic default filter values that update based on dataset values or SQL results—default filter values are static and stored in dashboard metadata, and the UI applies whatever is present there source. To achieve dynamic defaults, you have a few practical options:
The most maintainable approach is to automate updating dashboard metadata with fresh defaults based on your data. The UI and rendering logic will always use whatever defaults are present in the metadata, so this method works reliably. Let me know if you want a sample workflow or code snippet for automating metadata updates! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Query: How to Apply Dynamic Default Filter Values in Superset Dashboards
Hi everyone,
We are trying to implement dynamic default filter values on dashboards in Apache Superset and wanted some clarity on whether this is achievable natively or through an extension/workaround.
What we are trying to achieve
We want the default filter selection to be automatically set based on values present in the dataset, instead of manually defining default values in the filter configuration.
Example Use Case
For a time filter: auto-select the latest available date in the dataset.
For category filters: pre-select a value based on dataset logic (e.g., highest revenue region, currently active status, user-specific values).
Default filter should update dynamically as new data is ingested.
Current Challenge
Superset allows manually configured default filter values, but these values are static.
We are looking for a way where the default selected value should change dynamically depending on the most recent or calculated result from the underlying table.
Questions
Is there a built-in way in Superset to set filters dynamically based on data/SQL result?
If not natively supported, is there any recommended workaround such as:
Goal
Create dashboards where users always see the most relevant view without having to manually pick filter values every time — particularly when data updates frequently.
Any guidance, examples, or references would be greatly appreciated.

Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions