# How to create a field that indicates value gain (for example temperature) compared to yesterday

**URL:** https://discuss.elastic.co/t/how-to-create-a-field-that-indicates-value-gain-for-example-temperature-compared-to-yesterday/255699
**Category:** Kibana
**Created:** [November 17, 2020, 12:56pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-indicates-value-gain-for-example-temperature-compared-to-yesterday/255699 "2020-11-17T12:56:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![borisllona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/borisllona/32/79163_2.png) [@borisllona](https://discuss.elastic.co/u/borisllona)
#### Post date: [November 17, 2020, 12:56pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-indicates-value-gain-for-example-temperature-compared-to-yesterday/255699/1 "2020-11-17T12:56:39Z")

</div>

So I need a text that could say, Today is +3°C more than yesterday.  
Thanks in advance

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [November 19, 2020, 9:26am UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-indicates-value-gain-for-example-temperature-compared-to-yesterday/255699/2 "2020-11-19T09:26:34Z")

</div>

Hi @borisllona,

take a look at [this tutorial](https://www.elastic.co/blog/how-to-display-data-as-a-percentage-in-kibana-visualizations) and a section with header: " What is the change in sales week over week?" - it explains how to build a visualization that compares week over week. You can skip the bucket script (it converts the difference to percentage) and you'll have what you (I think) need 🙂

---

<div class="post-metadata">

### Author: ![borisllona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/borisllona/32/79163_2.png) [@borisllona](https://discuss.elastic.co/u/borisllona)
#### Post date: [November 20, 2020, 1:47pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-indicates-value-gain-for-example-temperature-compared-to-yesterday/255699/3 "2020-11-20T13:47:47Z")

</div>

Thanks Marta! That was exactly what I was looking for 🙂

---

<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 18, 2020, 1:47pm UTC](https://discuss.elastic.co/t/how-to-create-a-field-that-indicates-value-gain-for-example-temperature-compared-to-yesterday/255699/4 "2020-12-18T13:47:59Z")

</div>

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