No "Days Before" in Custom DateTime Range > Relative Date/Time #40810
Replies: 5 comments 1 reply
-
|
In some previous version, the relative datetime range selection has identical setting for both "Start" and "End"
|
Beta Was this translation helpful? Give feedback.
-
|
Hi @linchangyang-sg! I'm Dosu and I'm helping the Apache Superset team. Looking at the current implementation, the Start and End sections intentionally use different grain options —
This makes your use case ("from 120 days ago to 1 day ago") impossible to express using the Relative Date/Time mode for the End part, since there's no "Days Before" option there. The screenshot you shared from a previous version suggests both directions were once available in both sections. The current code defines these as separate constant arrays with no overlap, so it would require adding "Before" options to As a workaround, you can use the Advanced type with something like To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
@dosu I think a separate constant combination as |
Beta Was this translation helpful? Give feedback.
-
|
You're welcome, @linchangyang-sg! Your suggestion makes sense — having both "Before" and "After" available in each section (Start and End) would make the relative date picker much more flexible and intuitive for use cases like yours. This is a valid feature request that the maintainers can consider for a future release. Thanks for reporting it! To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
@linchangyang-sg feel free to open up a PR for this change if you want. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
In Charts, when filtering the datetime column, it's not possible to set "From 120 days ago to one day ago" intuitively in the Custom Type. There is no "Days Before" in the End part, also no "Days After" in the Start part.
We have to use the "Advanced" type to use a negative value with DATEADD function.
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.11
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions