Yes, without filter it works like a charm. I can’t seem to wrap my head around how to pass the variables. Within double quotes the query is not parsed to replace timeFilter ( or any other variable ) with the chosen values at runtime and the query is passed on as-is which throws an error at the server end ( Dremio in this case ) as unrecognized function / failure parsing the query etc.