# Data Table timestamp on aggregation

**URL:** https://discuss.elastic.co/t/data-table-timestamp-on-aggregation/114707
**Category:** Kibana
**Created:** [January 9, 2018, 1:23pm UTC](https://discuss.elastic.co/t/data-table-timestamp-on-aggregation/114707 "2018-01-09T13:23:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Robert\_Naccache](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robert_naccache/32/97656_2.png) [@Robert\_Naccache](https://discuss.elastic.co/u/Robert_Naccache)
#### Post date: [January 9, 2018, 1:23pm UTC](https://discuss.elastic.co/t/data-table-timestamp-on-aggregation/114707/1 "2018-01-09T13:23:43Z")

</div>

Hello,

Kind of stuck on this one so any help would be greatly appreciated.

Lets say my data looks like this:

monitoringtable: apples  
value: 100  
timestamp: 1-min-interval

monitoringtable: bannana  
value: 3000  
timestmap: 1-min-interval

where monitoring table is any type of fruit, and every minute there is a record with the value.

What i'm currently trying to do is create a data table that shows for a specified duration (chosen from the time picker), what the max value was for each fruit for that time period.

I've used a filter bucket to filter out the monitoringtable (didn't use field because banana has an unreadable code of the sorts BA-N1-AA) and managed to get the max value, but i can't get the table to show a timestamp for when the max value occurred.

something like:

Filter - Max Value - Time Occured  
banana - 1000 - Jan-03-2018

is it possible to display such information?

Thanks a lot

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [January 9, 2018, 10:09pm UTC](https://discuss.elastic.co/t/data-table-timestamp-on-aggregation/114707/2 "2018-01-09T22:09:40Z")

</div>

hi @Robert_Naccache,

Do you have these documents index on the timestamp as a date-field? Your index-pattern also needs to be configured with a timestamp-field, otherwise the time-picker won't work.

Can you then try the following?

In Data-Table visualization,  
-under Buckets, select `split rows`, and select a Terms aggregation, and the field would be `monitoringtable`.

- under Metrics, select the `max` metric and configure it for the `value` field.

---

<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: [February 6, 2018, 10:09pm UTC](https://discuss.elastic.co/t/data-table-timestamp-on-aggregation/114707/3 "2018-02-06T22:09:51Z")

</div>

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