Hello, Im new to Flux and i dont get it how to group my Data to get an “mean” by every hour of the day.
I have measurements of power consumtion every minute. I want to see on what hour of the day i use how many power. So the result should be 24 mean values without a date.
group(columns: ["_time"])
This group function doesn’t seem to be capable to group only by the hour.
In flux there’s a specific function to do that it’s window()
You’d then pipe into mean or median to get the stat for that window.
Then, depending on your use case, you might represent the last 10rows in a table/grid. Or if you wanted to collapse the window groups back into a single series, you’d pipe again into window(set to infinity) . Pretty much all the explanation is on the window data doco page.