oh man…it really gives the correct result!! Thank you!
but as it turns out, omitting the “GROUP BY” statement returns the correct max value incl. corresponding time stamp for a single query, but it does not work with an expression!?
using the query as in my first post results in this (correct max. value but incorrect timestamp):
A minute or two later (basically when the max value had falled one point), I did the previously mentioned query, changed the view to Stat and selected All fields. Doing that shows the timestamp for the max value as well as the max value. Is that what you want?
Well, that was one point which is solved by your suggested query. Thanks!
But the second point is to create an expression which adds two time series data. And for the resulting “sum data” I am also interested in the max. value incl. the timestamp.
But as shown by my screenshots above, for the expression (summing up $Dach_PV + $BKW_PV) I get no value displayed.
So my question now is, how can I retrieve the max. value incl. the timestamp of an expression, which sums up several time series data (queried with your suggested query)?