GitHub user Vinayselukar21 created a discussion: How to Apply Dynamic Default 
Filter Values in Superset Dashboards

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

1. Is there a built-in way in Superset to set filters dynamically based on 
data/SQL result?
 
2. If not natively supported, is there any recommended workaround such as:

      -  Custom Dashboard Plugin?      
      -  Using chart pre-query to push value into filter? 

### 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!
<img width="881" height="821" alt="image" 
src="https://github.com/user-attachments/assets/e192c97d-b3c1-42b5-ba61-0e4adb9fd93f";
 />

<img width="1892" height="917" alt="Screenshot 2025-12-05 122512" 
src="https://github.com/user-attachments/assets/d8a4eeeb-0022-4778-bafb-731938da98e8";
 />


GitHub link: https://github.com/apache/superset/discussions/36438

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to