# Mathematical operation in kibana

**URL:** <https://discuss.elastic.co/t/mathematical-operation-in-kibana/1555>\
**Category:** Kibana\
**Created:** [May 29, 2015, 11:21am UTC](https://discuss.elastic.co/t/mathematical-operation-in-kibana/1555 "2015-05-29T11:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanju1323](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sanju1323](https://discuss.elastic.co/u/sanju1323)\
**Post date:** [May 29, 2015, 11:21am UTC](https://discuss.elastic.co/t/mathematical-operation-in-kibana/1555/1 "2015-05-29T11:21:59Z")

</div>

Hi,

Can I perform calculations on a field?  
"PatientID","PatientName","Age","Gender","Doctor","Revenue" are the fields I have. I want to perform the following operations:

1. Total revenue per doctor
2. Percentage of revenue per doctor to the hospital (percent=("Total Revenue of the doctor" / "Total Hospital Revenue")\*100)

I want to perform these operations, Can anyone please help me in doing this?

Thanks & Regards,  
Sanjay

---

<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 6, 2017, 2:18pm UTC](https://discuss.elastic.co/t/mathematical-operation-in-kibana/1555/2 "2017-07-06T14:18:55Z")

</div>


