Sum of all records of a bucket

Hello,

is there a way to output the sum of all records of a bucket?

If i use |> count() only the single _measurements are counted, but I would like to know how many there are in total.

Thanks a lot!

Hello @vdcore,
Have you tried applying a |> group() before the count of sum? group() without parameters is effectively an ungrouping.
Thanks,
Anais