rumbin commented on issue #20042: URL: https://github.com/apache/superset/issues/20042#issuecomment-1613305767
Sharing a workaround here: ``` {# This is a minimum working example (MWE) of how to use the range filter slider with two range values. Note: Use this approach only if you really need to (e.g. injecting the filter into a CTE). In all cases where it is sufficient to apply the filter on the _whole_ dataset we let Superset do the job for us! #} with dummy_table as ( select * from (values (0) , (1) , (2) , (4) , (8) , (16) ) as v(val) ) select * from dummy_table where true {% for filter in get_filters('my_range') %} and val {{ filter.get('op') }} {{ filter.get('val') }} {% endfor %} ``` -- 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. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org