# How can achieve this with kibana?

**URL:** <https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270>\
**Category:** Kibana\
**Created:** [December 1, 2020, 7:57pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270 "2020-12-01T19:57:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nino](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nino](https://discuss.elastic.co/u/nino)\
**Post date:** [December 1, 2020, 7:57pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270/1 "2020-12-01T19:57:59Z")

</div>

Hello,

i need to calculate dynamically return column, but i don't know if we can get this with kibana:

formula column **return = value (today) / value(yesterday) -1**

```
@timestamp account value return (column to calculate)
2020-10-30 A 20972.05 0.0000
2020-11-02 A 44017.80 1,0988
2020-11-03 A 18037.97 0,5902
2020-11-04 A 11723.38 0,3501
2020-11-05 A 21760.75 0,8562
2020-11-06 A 11256.97 0,4827
2020-11-09 A 52654.39 3,6779
2020-11-10 A 34066.16 0,3530

```

Best regards

---

<div class="post-metadata">

**Author:** ![Iker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iker/32/91708_2.png) [@Iker](https://discuss.elastic.co/u/Iker)\
**Post date:** [December 1, 2020, 8:50pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270/2 "2020-12-01T20:50:19Z")

</div>

You could do it by using the metric "serial difference" and a "Date Histogram", it's not exactly a ratio like the one that you expect, but the other option will be timelion operating the two series. Hope it Helps.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88224a495daba3b5155ce35476b9c09cffab836c.png)

---

<div class="post-metadata">

**Author:** ![nino](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nino](https://discuss.elastic.co/u/nino)\
**Post date:** [December 1, 2020, 9:34pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270/3 "2020-12-01T21:34:17Z")

</div>

> [@Iker](#):
>
> timelion operating the two series

Thank you so much Iker, i really need to calculate return between periods, daily, monthly... calculate de diference helps but i need the percentage of change, no way to do this?

Best regards

---

<div class="post-metadata">

**Author:** ![Iker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iker/32/91708_2.png) [@Iker](https://discuss.elastic.co/u/Iker)\
**Post date:** [December 1, 2020, 11:09pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270/4 "2020-12-01T23:09:28Z")

</div>

In theory you could use timelion to get the %, then use that data in Canvas so you could get a nice table, but the last part is beyond my capabilities:

Example of timelion params:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/2/2289d0c77a693f5e99f401abba5fa1fdfd7a19d5.png)

Visualization

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/2/62cc8e72d946463328e627d22d52801cf3c58017.png)

---

<div class="post-metadata">

**Author:** ![nino](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nino](https://discuss.elastic.co/u/nino)\
**Post date:** [December 1, 2020, 11:46pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270/5 "2020-12-01T23:46:38Z")

</div>

Thank you so much iker,

it's really helpful. Much aprreciated

Best regards

---

<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:** [December 29, 2020, 11:46pm UTC](https://discuss.elastic.co/t/how-can-achieve-this-with-kibana/257270/6 "2020-12-29T23:46:41Z")

</div>

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