Hello @ahoiroman,
Welcome!! First, I’d like to encourage you. to try updating to 2.0 and using Flux because I genuinely feel that it’s easier.
Ok, now for your question. I’m a little confused by the group by time (interval) portion. Can you please explain a little bit more what you expect there?
I believe you’re looking to use a nested subquery.
Something like: SELECT derivative("mean") FROM (SELECT mean("my data") AS "mean"....)