# Comparing Today with Yesterday \[Data Table\] Kibana 6.8.0

**URL:** <https://discuss.elastic.co/t/comparing-today-with-yesterday-data-table-kibana-6-8-0/189906>\
**Category:** Kibana\
**Created:** [July 11, 2019, 4:49am UTC](https://discuss.elastic.co/t/comparing-today-with-yesterday-data-table-kibana-6-8-0/189906 "2019-07-11T04:49:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karnamonkster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karnamonkster/32/67266_2.png) [@karnamonkster](https://discuss.elastic.co/u/karnamonkster)\
**Post date:** [July 11, 2019, 4:49am UTC](https://discuss.elastic.co/t/comparing-today-with-yesterday-data-table-kibana-6-8-0/189906/1 "2019-07-11T04:49:49Z")

</div>

Hi,

Similar to this [Case](https://discuss.elastic.co/t/specify-date-histogram-offset-in-kibana/83169)  
I am trying to display current time period (4hrs) Sum of value for a Device in one column  
And yesterday's Sum of value (4hrs) for the same device in another column.

I am guessing there should be a way to use offset (-1d) to get the values for yesterday.  
But need some help to achieve that.

Using the [Case](https://discuss.elastic.co/t/specify-date-histogram-offset-in-kibana/83169) , i am getting an error when i put that under date histogram.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 12, 2019, 4:22pm UTC](https://discuss.elastic.co/t/comparing-today-with-yesterday-data-table-kibana-6-8-0/189906/2 "2019-07-12T16:22:15Z")

</div>

@karnamonkster

I don't think it is possible to get this in a column layout (row = device + today + yesterday tuple). And I also don't think you can specify a time-range with an offset that is not the current time (for the yesterday column).

I would file an ER [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

---

<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:** [August 9, 2019, 4:22pm UTC](https://discuss.elastic.co/t/comparing-today-with-yesterday-data-table-kibana-6-8-0/189906/3 "2019-08-09T16:22:16Z")

</div>

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