# How to get the difference between min timestamp and max timestamp?

**URL:** <https://discuss.elastic.co/t/how-to-get-the-difference-between-min-timestamp-and-max-timestamp/172574>\
**Category:** Kibana\
**Created:** [March 15, 2019, 4:37pm UTC](https://discuss.elastic.co/t/how-to-get-the-difference-between-min-timestamp-and-max-timestamp/172574 "2019-03-15T16:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marjan](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@marjan](https://discuss.elastic.co/u/marjan)\
**Post date:** [March 15, 2019, 4:37pm UTC](https://discuss.elastic.co/t/how-to-get-the-difference-between-min-timestamp-and-max-timestamp/172574/1 "2019-03-15T16:37:27Z")

</div>

Hi there,

I am a newbee in Kibana and Elastic search. I have created a visualisation of data table in Kibana. I have 3 metrics (Count, min @timestamp, max @timestamp):

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

I also have a bucket with split rows which is grouping my data by the field order-id.

In my data table I want to have an extra field showing the difference between min and max timestamps. Is there a way to do it in kibana?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [March 20, 2019, 5:17pm UTC](https://discuss.elastic.co/t/how-to-get-the-difference-between-min-timestamp-and-max-timestamp/172574/2 "2019-03-20T17:17:47Z")

</div>

Unfortunately, there's no way to accomplish this at the current time.

---

<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 17, 2019, 5:22pm UTC](https://discuss.elastic.co/t/how-to-get-the-difference-between-min-timestamp-and-max-timestamp/172574/3 "2019-04-17T17:22:49Z")

</div>

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