Using variable in timefilter

I am attempting to use a variable defined in the workpad in the timefilter but I can't seem to figure it out.

timefilter column="dates.createDate" from="now-{var \"query_timeframe\"}h" to="now"

Use of the variable does work in Markdown.

| markdown {context} " Errored queries in " {var "query_timeframe"} " hrs"

You can't put expressions in strings. You can construct concatenated strings. So try this:

timefilter column="dates.createDate" from={string "now-" {var "query_timeframe"} "h"} to="now"

That did it. Thanks again!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.