# SUM all with label xxxx

**URL:** <https://community.influxdata.com/t/sum-all-with-label-xxxx/26527>\
**Category:** Fluxlang\
**Tags:** influxdb, time-series, query\
**Created:** [September 13, 2022, 10:52am UTC](https://community.influxdata.com/t/sum-all-with-label-xxxx/26527 "2022-09-13T10:52:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nigel\_Hewett](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/nigel_hewett/32/10323_2.png) [@Nigel\_Hewett](https://community.influxdata.com/u/Nigel_Hewett)\
**Post date:** [September 13, 2022, 10:52am UTC](https://community.influxdata.com/t/sum-all-with-label-xxxx/26527/1 "2022-09-13T10:52:21Z")

</div>

Hi,

I have the following data collected every 2m:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/3/32db14390b4af3acc072a0209dc7e7db66a87883.png)

I am trying to graph the sum of all with label starting with RCC1, so i have tried:

```auto
from(bucket: "vsphere")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "RMF")
  |> filter(fn: (r) => r["description"] == "response time by volume")
  |> filter(fn: (r) => r["label"] =~ /RCC1/)
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "last")

```

which displays all RCC1 values no problem, how do I total all values for each 2m period so as to produce a graph showing one line with the total every 2m?

Thanks
