# Doing Math over count of events

**URL:** https://discuss.elastic.co/t/doing-math-over-count-of-events/97278
**Category:** Kibana
**Created:** [August 16, 2017, 2:28pm UTC](https://discuss.elastic.co/t/doing-math-over-count-of-events/97278 "2017-08-16T14:28:23Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)
#### Post date: [August 17, 2017, 4:58pm UTC](https://discuss.elastic.co/t/doing-math-over-count-of-events/97278/6 "2017-08-17T16:58:28Z")

</div>

Do all your docs have either success or failure? If so, then the visual builder screen I showed should work because it's doing `transactionStatus:success/*`  
In this case `*` means all docs, which is both success and failure.

If some of your docs don't have either success or failure, then we'll need to use something other than `*` for the denominator.

---

_[View the full topic](https://discuss.elastic.co/t/doing-math-over-count-of-events/97278)._
