GitHub user bsenthilbalu created a discussion: How to Avoid Double Application 
of Time Filter (Dashboard & Jinja) in Superset?

**Question**:
In Superset, when I have a dataset with a temporal column and use a chart in a 
dashboard, the dashboard’s time filter is automatically applied to queries for 
that dataset.
However, I also need to use custom Jinja logic (using 
**from_dttm**/**to_dttm**) inside my virtual dataset SQL for advanced time 
filtering. When I do this, it seems the same time filter is applied twice: once 
by Superset automatically (because of the temporal column and dashboard 
filter), and once in my own SQL via Jinja.
**Is there a recommended way to avoid this double-filtering?**

- Can I disable automatic time filtering at the chart or dataset level?
- Is there a best practice for using custom time logic with dashboard time 
filters, without filtering twice?
- Are there alternative solutions for this scenario?

Any guidance from the community would be appreciated!
**Thanks in advance!**

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

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to