# KPIs based on events in time

**URL:** https://discuss.elastic.co/t/kpis-based-on-events-in-time/88028
**Category:** Kibana
**Created:** [June 2, 2017, 8:01am UTC](https://discuss.elastic.co/t/kpis-based-on-events-in-time/88028 "2017-06-02T08:01:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![blicky](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blicky](https://discuss.elastic.co/u/blicky)
#### Post date: [June 2, 2017, 8:01am UTC](https://discuss.elastic.co/t/kpis-based-on-events-in-time/88028/1 "2017-06-02T08:01:11Z")

</div>

Hi,

I want to display KPIs based on event intervals, e.g.

- average time between event A and event B per user
- average amount of event C in time per user

I struggle to figure out what is the best way to make this with Kibana, anyone has some ideas or documentation on how to achieve this?

Thanks,  
Stefan

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [June 2, 2017, 11:59am UTC](https://discuss.elastic.co/t/kpis-based-on-events-in-time/88028/2 "2017-06-02T11:59:40Z")

</div>

For the first one, it pretty much depends on how you have your events indexed in ES. If you just ingest events with a timestamp then it's going to be a bit weird. But if you ingest them as {user, timeEventA, timeEventB} this could be done.

But I really do recommend watching this webinar first:  
[https://www.elastic.co/webinars/kibana-101-get-started-with-visualizations](https://www.elastic.co/webinars/kibana-101-get-started-with-visualizations)

---

<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: [June 30, 2017, 11:59am UTC](https://discuss.elastic.co/t/kpis-based-on-events-in-time/88028/3 "2017-06-30T11:59:45Z")

</div>

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