Sum cumulated power usage

  • What Grafana version and what operating system are you using?
    Grafana 8.2.5 in docker.

  • What are you trying to achieve?
    I cumulate the power consumption for my Entertainment system. When its turned off, the value is 0. How can I sum the power consumption?
    Here example data’s:
    time 0
    time 0.5
    time 0.8
    time 1.2
    time 1.5
    time 1.8
    time 0
    time 0
    time 0
    time 0.4
    time 0.5
    time 0.9
    time 1.3
    time 1.9
    time 2.2
    time 0
    time 0

So I need to get a total of 4 back.

Thanks a lot for any help.