# Same field different values on Discover and on Graphic

**URL:** <https://discuss.elastic.co/t/same-field-different-values-on-discover-and-on-graphic/199321>\
**Category:** Elasticsearch\
**Created:** [September 12, 2019, 7:37pm UTC](https://discuss.elastic.co/t/same-field-different-values-on-discover-and-on-graphic/199321 "2019-09-12T19:37:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrunoSdeMenezes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brunosdemenezes/32/46413_2.png) [@BrunoSdeMenezes](https://discuss.elastic.co/u/BrunoSdeMenezes)\
**Post date:** [September 12, 2019, 7:37pm UTC](https://discuss.elastic.co/t/same-field-different-values-on-discover-and-on-graphic/199321/1 "2019-09-12T19:37:05Z")

</div>

Hello all,

I'm having a trouble of using a field that shows me a value on Discover but a different value when I use to plot a vertical bar.

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/3/33c5fb0e49318190814815bb4b94a2c177126a9e.png)

But when I use the same field to plot a vertical bar graph, it shows me this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/a/ead2b1b264bd3fc91c0662bf65764666f030c4e7.png)  
If the picture is not clear, the value showing on tooltip: 84.787.520

The response tab on the graph is showing me this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05a3c378c14b23f5f8d76641d35147bcfa4ba659.png)

Someone have seen this before?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [September 12, 2019, 8:04pm UTC](https://discuss.elastic.co/t/same-field-different-values-on-discover-and-on-graphic/199321/2 "2019-09-12T20:04:10Z")

</div>

Histogram's are keyed by the start value of the bucket, and the width is the `interval` defined in the aggregation request. So I think this is just a case of seeing the histogram key instead of the original value. If you put a `max` aggregation inside that bucket I imagine you'd see the original value since there is only one document

---

<div class="post-metadata">

**Author:** ![BrunoSdeMenezes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brunosdemenezes/32/46413_2.png) [@BrunoSdeMenezes](https://discuss.elastic.co/u/BrunoSdeMenezes)\
**Post date:** [September 13, 2019, 1:15pm UTC](https://discuss.elastic.co/t/same-field-different-values-on-discover-and-on-graphic/199321/3 "2019-09-13T13:15:40Z")

</div>

Actually is showing only one value because I used a filter to show that particular \_doc. But, the plot must show the sum of all \_docs. That's why I'm using sum instead of max.

---

<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:** [October 11, 2019, 1:15pm UTC](https://discuss.elastic.co/t/same-field-different-values-on-discover-and-on-graphic/199321/4 "2019-10-11T13:15:46Z")

</div>

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