# KIbana filter by aggrgation on y axis

**URL:** <https://discuss.elastic.co/t/kibana-filter-by-aggrgation-on-y-axis/147033>\
**Category:** Kibana\
**Created:** [September 3, 2018, 8:16am UTC](https://discuss.elastic.co/t/kibana-filter-by-aggrgation-on-y-axis/147033 "2018-09-03T08:16:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambuj\_Jauhari](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Ambuj\_Jauhari](https://discuss.elastic.co/u/Ambuj_Jauhari)\
**Post date:** [September 3, 2018, 8:16am UTC](https://discuss.elastic.co/t/kibana-filter-by-aggrgation-on-y-axis/147033/1 "2018-09-03T08:16:57Z")

</div>

I have been exploring elastic search and kibana. Simple aggregations are working fine.

I am stuck at plotting the below scenario

I have a document with 3 fields as below and some sample entries

```
processId , process version, modifiedDatetime

1, 0, 2018-01-01

1, 1, 2018-01-02

2,. 0, 2018-01-01

```

I need to plot a vertical graph where in i have to count process every day but it should count only max version

So in this case for 2018-01-01 it should only give me count as 1 (event though there are 2 entries it should count only the latest version)  
I tried applying filter but have not been successfull

Any thing that can be done here ?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [September 4, 2018, 12:12pm UTC](https://discuss.elastic.co/t/kibana-filter-by-aggrgation-on-y-axis/147033/2 "2018-09-04T12:12:48Z")

</div>

Hey @Ambuj_Jauhari, I'm not seeing a way to accomplish what you're looking for at query time, is there a way to adjust your ingest processing to update documents when the process version is updated as opposed to inserting a new document?

---

<div class="post-metadata">

**Author:** ![Ambuj\_Jauhari](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Ambuj\_Jauhari](https://discuss.elastic.co/u/Ambuj_Jauhari)\
**Post date:** [September 5, 2018, 1:48am UTC](https://discuss.elastic.co/t/kibana-filter-by-aggrgation-on-y-axis/147033/3 "2018-09-05T01:48:43Z")

</div>

Hi Brandon,

yeah we can adjust the ingestion process to maintain only latest version of the process if thats the only choice

A quick note on why we wanted to keep all versions is because the next step for us here was to allow users to track each process.

For e.g. version 0 means CREATED 1 means EMAIL\_SENT, 2 means CLIENT\_RESPONDED, 4 means COMPLETED

So we wanted a way to create a visualization where in they can track each process timeline when the process was created, when did client respond.

Honestly i have not explored this visualization is this possible in kibana and if so can you suggest on how woul i be able to acheive this ?

---

<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 3, 2018, 1:48am UTC](https://discuss.elastic.co/t/kibana-filter-by-aggrgation-on-y-axis/147033/4 "2018-10-03T01:48:46Z")

</div>

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