# How to display data compared to yesterday?

**URL:** <https://discuss.elastic.co/t/how-to-display-data-compared-to-yesterday/311455>\
**Category:** Kibana\
**Created:** [August 4, 2022, 5:58pm UTC](https://discuss.elastic.co/t/how-to-display-data-compared-to-yesterday/311455 "2022-08-04T17:58:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kibanosi](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Kibanosi](https://discuss.elastic.co/u/Kibanosi)\
**Post date:** [August 4, 2022, 5:58pm UTC](https://discuss.elastic.co/t/how-to-display-data-compared-to-yesterday/311455/1 "2022-08-04T17:58:34Z")

</div>

Hi,  
I'm looking for a dashboard view.  
Is there a way to display for example today's data and then show the data in percentage from yesterday like in this image?

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0a4b9a64514fd457d0b1f9e593ffb22ca69af999.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 4, 2022, 11:38pm UTC](https://discuss.elastic.co/t/how-to-display-data-compared-to-yesterday/311455/2 "2022-08-04T23:38:52Z")

</div>

Not just like that but you would create a Lens Table with formulas and use shift  
You can limit to 1 day if you like  
Set the date interval to Days

```auto
1st Column(display as currency)            
sum(revenue)  

2nd column(display as currency) 
sum(revenue, shift-1d)                

3rd Column (display as percent) color code 
sum(revenue, shift-1d) - sum(revenue) ) / sum(revenue) )

```

 ![Screen Shot 2022-08-04 at 4.37.45 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/8/783aa9f870b34027e22bc6621c97905b4361094f.jpeg)

 ![Screen Shot 2022-08-04 at 4.37.57 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/6/3663a11a43e6ee8fe1bc98dd2bf6402517a65aa5.png)

---

<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:** [September 1, 2022, 11:39pm UTC](https://discuss.elastic.co/t/how-to-display-data-compared-to-yesterday/311455/3 "2022-09-01T23:39:20Z")

</div>

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