# ? SUM of (MAXs since t=0), of a set of values plotted by hour?

**URL:** https://discuss.elastic.co/t/sum-of-maxs-since-t-0-of-a-set-of-values-plotted-by-hour/171406
**Category:** Kibana
**Created:** [March 8, 2019, 12:18am UTC](https://discuss.elastic.co/t/sum-of-maxs-since-t-0-of-a-set-of-values-plotted-by-hour/171406 "2019-03-08T00:18:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jpbourke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpbourke/32/41269_2.png) [@jpbourke](https://discuss.elastic.co/u/jpbourke)
#### Post date: [March 8, 2019, 12:18am UTC](https://discuss.elastic.co/t/sum-of-maxs-since-t-0-of-a-set-of-values-plotted-by-hour/171406/1 "2019-03-08T00:18:43Z")

</div>

Hi,

I have a number of different flows

f1  
f2  
f3

each have btye counters which increment over time

f1.bytes  
f2.bytes  
f3.bytes

They dont report at regular times.

12:00 f1.bytes 10  
12:00 f2.bytes 324  
12:00 f3.bytes 123  
12:01 f2.bytes 543  
12:01 f3.bytes 2354  
12:02 f1.bytes 90  
12:02 f3.bytes 5345

If I want the total of ALL the counters for a time period since start, I need the SUM of the MAX of each flow for the time period

If I want to plot that over time since start .....

I need the SUM of all current and previous MAX for each flow at each time bucket in my plot.

Can anyone suggest how this can be done in Kibana ?

Thanks

john

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 5, 2019, 12:18am UTC](https://discuss.elastic.co/t/sum-of-maxs-since-t-0-of-a-set-of-values-plotted-by-hour/171406/2 "2019-04-05T00:18:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
