You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/03/02 23:36:32 UTC

[GitHub] SGSunil commented on issue #4583: Need multiple date filters in slice

SGSunil commented on issue #4583: Need multiple date filters in slice
URL: https://github.com/apache/incubator-superset/issues/4583#issuecomment-468970929
 
 
   @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.
   calculated column = date_field >= DATE_SUB(NOW(),INTERVAL 1 YEAR) 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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