Dear sir / madam!
Is there any way to implement IF-ELSE-CONDITION (or something similar) in the query editor depending on the value of the variable?
Something like this:
if ($__range <= 15m) then
SELECT mean("value") FROM "autogen"."tssamples" WHERE ("paramName" = 'current')
AND $timeFilter **GROUP BY time(1s)**, "paramName" fill(none) ORDER BY time DESC
end_if
SELECT mean("value") FROM "autogen"."tssamples" WHERE ("paramName" = 'current')
AND $timeFilter **GROUP BY time($__interval)**, "paramName" fill(none) ORDER BY time DESC
end_else
Thank you!