TIPS - DQL Timeframe selection

Hi all ,

Thanks for the tip here 😀
Do you have any other tip if we want to go through relative timeframe?

like if I want relative timings (like “now-1h/h to now-0h/h”) or “from: now-1M/M to :now-0M/M” , I have the message “The parameter `from` has to be constant”
I have not found any tips to do so.

Temp solution I have found is to query larger data and then filter afterwards :

|filter getHour(timestamp) >= (getHour(now())-1) and getHour(timestamp) < getHour(now())

Is it possible to do it directly from timeframe filter ?

Best regards,

Christophe

3 Likes