GitHub user dosubot[bot] added a comment to the discussion: Filter scope on dashboard causes datetime filter to snap to first available data point instead of selected start
<!-- Greeting --> Hi @seohyunjun! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> I couldn't find any existing issues or discussions about datetime filters snapping to the first available data point in dashboards. Based on the code, Superset's datetime filter logic (both frontend and backend) is designed to respect the exact time range you specify in the filter—meaning it should send your selected start and end datetimes to the backend and use those for queries, regardless of whether your dataset has data for the entire range. There’s no built-in logic in the filter components or API to automatically snap the filter to the first available data point in your dataset; any such behavior would likely be coming from the chart’s query or visualization logic, not the filter itself ([source](https://github.com/apache/superset/blob/a64b9ac84f48074340d14e5cf92505627451ec52/superset/views/api.py), [source](https://github.com/apache/superset/blob/a64b9ac84f48074340d14e5cf92505627451ec52/superset/utils/date_parser.py)). If you want charts to show empty periods before the first data point (instead of starting at the first available record), you’ll need to ensure your chart’s query or visualization logic can render empty intervals for missing data. Superset’s filters and scoping system will pass the full time range, but the chart itself may need to be configured (or the dataset adjusted) to fill in those gaps. If you’re seeing different behavior, it could be due to the chart type, dataset structure, or how missing time intervals are handled in your queries. There’s no setting in the filter or filter scoping UI to change this behavior. If you need more specific guidance, sharing the chart type and dataset structure could help narrow down the cause. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/62b7fa4f-860b-4e88-816f-a93b2b836b68?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33753) GitHub link: https://github.com/apache/superset/discussions/33753#discussioncomment-13443202 ---- 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]
