Skip to content

No "Days Before" in Custom DateTime Range > Relative Date/Time #40787

@linchangyang-sg

Description

@linchangyang-sg

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

Image

Superset version

master / latest-dev

Python version

3.11

Node version

I don't know

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    explore:filterRelated to filters in Explorevalidation:requiredA committer should validate the issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions