# Kibana Data Table Math Operations

**URL:** <https://discuss.elastic.co/t/kibana-data-table-math-operations/248078>\
**Category:** Kibana\
**Created:** [September 9, 2020, 9:13pm UTC](https://discuss.elastic.co/t/kibana-data-table-math-operations/248078 "2020-09-09T21:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Amico](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuel_amico/32/75326_2.png) [@Samuel\_Amico](https://discuss.elastic.co/u/Samuel_Amico)\
**Post date:** [September 9, 2020, 9:13pm UTC](https://discuss.elastic.co/t/kibana-data-table-math-operations/248078/1 "2020-09-09T21:13:56Z")

</div>

Hi guys, this question is very Important to me, so please help me:

I have two fields: priceA and priceB, and I have to do some operation like this in the data table:  
sum(priceA) / sum(priceB).

How can I achive this, the data table give me the SUM metrics but how can i divide them.

Thanks.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [September 10, 2020, 4:14pm UTC](https://discuss.elastic.co/t/kibana-data-table-math-operations/248078/2 "2020-09-10T16:14:17Z")

</div>

The "data table" visualization in Kibana doesn't support math like this. You can create an equivalent visualization using TSVB, which does support math, and this is what I would recommend.

---

<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:** [October 8, 2020, 4:14pm UTC](https://discuss.elastic.co/t/kibana-data-table-math-operations/248078/3 "2020-10-08T16:14:20Z")

</div>

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