-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need multiple date filters in slice #4583
Comments
Any workaround for this or plan to solve it. |
Seems like a not so common use case, and can be worked around easily with the common filters and/or the WHERE clause. |
@mistercrunch thanks for the response, highly appreciated. I tried to use two filters for different time dimensions (system start date, complaint date). Only one works because in all the slices we have the option to provide only 1 time related form attribute, which can either be system start date or complaint date in my case. If I use a normal filter then I can't use last year, last 1 month etc. How you will solve such a use case. |
@sanoopmm are you able to find any workaround. |
@sanoopmm @mistercrunch I was able to achieve a workaround by creating a calculated column to know the current year (value = 1) and rest period (value = 0) and then using these two values in the filter slice. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Please do not close. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Up. Please advise on any meaningful workaround. |
Any updates ? |
So is not possible? |
We have also main uses cases in which we need two timing filters, one for the daily trends and another for a dimension of the data (like order date, release date...) |
Since the fantastic work by @zhaoyongjie has merged, I'm going to call this issue closed. Please turn on the |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.20.4
Expected results
When I try to create a slice and I have more than one Date columns, I need to specify multiple 'Time Column'. Also I need multiple date filters in the slice. According to the number of date columns, I need more number of date filters.
Actual results
Now only one 'Time Column' and only one date filter is possible even if more than one date columns are available in the table.
Steps to reproduce
The text was updated successfully, but these errors were encountered: