# Sum Aggregation with elasticsearch data source shows only one value

**URL:** <https://community.grafana.com/t/sum-aggregation-with-elasticsearch-data-source-shows-only-one-value/13740>\
**Category:** Grafana\
**Created:** [January 22, 2019, 10:24am UTC](https://community.grafana.com/t/sum-aggregation-with-elasticsearch-data-source-shows-only-one-value/13740 "2019-01-22T10:24:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacpm](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@isaacpm](https://community.grafana.com/u/isaacpm)\
**Post date:** [January 22, 2019, 10:24am UTC](https://community.grafana.com/t/sum-aggregation-with-elasticsearch-data-source-shows-only-one-value/13740/1 "2019-01-22T10:24:57Z")

</div>

Hi,

I’m trying to create a single stat panel that displays a sum of the values of a field for the selected time range.  
The data source is elastic, 6.0+ version.  
The problem I’m having is that it only shows one value of the field and not the sum. Depending on the order by the value changes, but it never shows the sum.  
The configuration is:  
Metric: Sum --\> field\_name  
Group By: Terms --\> field name

Thanks,  
Isaac

---

<div class="post-metadata">

**Author:** ![isaacpm](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@isaacpm](https://community.grafana.com/u/isaacpm)\
**Post date:** [January 22, 2019, 11:00am UTC](https://community.grafana.com/t/sum-aggregation-with-elasticsearch-data-source-shows-only-one-value/13740/2 "2019-01-22T11:00:38Z")

</div>

Found the answer, I had to chose the Column “Sum” in the Values section of the options tab
