# Counting occurrence of two events and then displaying the percentage

**URL:** <https://discuss.elastic.co/t/counting-occurrence-of-two-events-and-then-displaying-the-percentage/96040>\
**Category:** Kibana\
**Created:** [August 7, 2017, 4:36am UTC](https://discuss.elastic.co/t/counting-occurrence-of-two-events-and-then-displaying-the-percentage/96040 "2017-08-07T04:36:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [August 7, 2017, 6:12pm UTC](https://discuss.elastic.co/t/counting-occurrence-of-two-events-and-then-displaying-the-percentage/96040/2 "2017-08-07T18:12:15Z")

</div>

The Time Series Visual Builder should be helpful here.

Here is some test data I have, to try and match your data:

 ![21 PM](https://us1.discourse-cdn.com/elastic/original/3X/8/3/8375cd0ca8aec60b3973065fa0461a544c699d13.png)

Here is my metric panel details in the Visual Builder.

 ![06 PM](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1b5aa23ce7fa5afa1578542d91c6717391daa201.png)

I'm running into an issue at the moment ([https://github.com/elastic/kibana/issues/13370](https://github.com/elastic/kibana/issues/13370)) but I think this _should_ get you what you want.

---

_[View the full topic](https://discuss.elastic.co/t/counting-occurrence-of-two-events-and-then-displaying-the-percentage/96040)._
