# TSVB math aggregation on multiple series

**URL:** <https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288>\
**Category:** Kibana\
**Created:** [January 15, 2021, 6:00pm UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288 "2021-01-15T18:00:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [January 15, 2021, 6:00pm UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288/1 "2021-01-15T18:00:54Z")

</div>

Hello

I've read discussion on [TSVB - Creating variables for Math](https://discuss.elastic.co/t/tsvb-creating-variables-for-math/228385).

I was using different series with **index pattern override** to plot data from **two different indexes** , but I've figured out that I cannot calculate a ratio from both values.

Should I use timelion to do that? Is my only chance?

Thank you

Hugo

---

<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:** [January 15, 2021, 7:02pm UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288/2 "2021-01-15T19:02:55Z")

</div>

This is not a feature of TSVB, but you are right that Timelion supports it. Vega can also do this.

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [January 15, 2021, 8:57pm UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288/3 "2021-01-15T20:57:45Z")

</div>

Thank you. Is it possible to have some examples or a documentation link?

---

<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:** [January 15, 2021, 9:19pm UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288/4 "2021-01-15T21:19:33Z")

</div>

Try this: [https://www.elastic.co/blog/timelion-tutorial-from-zero-to-hero](https://www.elastic.co/blog/timelion-tutorial-from-zero-to-hero)

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [January 16, 2021, 10:43am UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288/5 "2021-01-16T10:43:22Z")

</div>

Thanks

---

<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:** [February 13, 2021, 10:43am UTC](https://discuss.elastic.co/t/tsvb-math-aggregation-on-multiple-series/261288/6 "2021-02-13T10:43:22Z")

</div>

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