# Rate of a term count/another term count

**URL:** <https://discuss.elastic.co/t/rate-of-a-term-count-another-term-count/89794>\
**Category:** Kibana\
**Created:** [June 17, 2017, 5:46am UTC](https://discuss.elastic.co/t/rate-of-a-term-count-another-term-count/89794 "2017-06-17T05:46:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![navid.f10](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@navid.f10](https://discuss.elastic.co/u/navid.f10)\
**Post date:** [June 17, 2017, 5:46am UTC](https://discuss.elastic.co/t/rate-of-a-term-count-another-term-count/89794/1 "2017-06-17T05:46:19Z")

</div>

Hi,

Sorry guys if the subject is not clear.  
I have a field named "Action" which has several values (e.g. "action1", "action2", etc..)  
i want to calculate the percentage of (action1)/(action2).  
Is this possible in kibana via visualize or scripted fields ?

Thank you in advance for your assistance  
Best Regards,  
N.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 17, 2017, 6:39am UTC](https://discuss.elastic.co/t/rate-of-a-term-count-another-term-count/89794/2 "2017-06-17T06:39:14Z")

</div>

i think that will only be possible with timelion

`.es(q="your first query").divide(.es(q="your second query))`

---

<div class="post-metadata">

**Author:** ![navid.f10](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@navid.f10](https://discuss.elastic.co/u/navid.f10)\
**Post date:** [June 17, 2017, 12:25pm UTC](https://discuss.elastic.co/t/rate-of-a-term-count-another-term-count/89794/3 "2017-06-17T12:25:01Z")

</div>

Thanks a lot i will check it asap.

---

<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:** [July 15, 2017, 12:25pm UTC](https://discuss.elastic.co/t/rate-of-a-term-count-another-term-count/89794/4 "2017-07-15T12:25:38Z")

</div>

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