# Performing operations on multiple documents

**URL:** <https://discuss.elastic.co/t/performing-operations-on-multiple-documents/167007>\
**Category:** Kibana\
**Created:** [February 4, 2019, 5:19pm UTC](https://discuss.elastic.co/t/performing-operations-on-multiple-documents/167007 "2019-02-04T17:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amiradler](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@amiradler](https://discuss.elastic.co/u/amiradler)\
**Post date:** [February 4, 2019, 5:19pm UTC](https://discuss.elastic.co/t/performing-operations-on-multiple-documents/167007/1 "2019-02-04T17:19:49Z")

</div>

Hi,

I have documents in the following format:  
{"creationTime": "2019-01-20T12:10:30Z",  
"endTime": "2019-01-20T12:11:40Z",  
"blockName": "b1",  
"iteration":1,  
"requestIndex":1  
}

Each block can contain several iterations.  
In each iteration there can be several requestIndex.

In the x axis I need to have all blocks (b1, b2 etc).  
In the y axis I need to have to print the value of average(max(endTime)-min(creationTime)).

How can I do it in Kibana?

---

<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:** [March 4, 2019, 5:19pm UTC](https://discuss.elastic.co/t/performing-operations-on-multiple-documents/167007/2 "2019-03-04T17:19:59Z")

</div>

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