# Data Table - Compare two periods from different years

**URL:** <https://discuss.elastic.co/t/data-table-compare-two-periods-from-different-years/207534>\
**Category:** Kibana\
**Created:** [November 12, 2019, 1:51pm UTC](https://discuss.elastic.co/t/data-table-compare-two-periods-from-different-years/207534 "2019-11-12T13:51:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crpj](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@crpj](https://discuss.elastic.co/u/crpj)\
**Post date:** [November 12, 2019, 1:51pm UTC](https://discuss.elastic.co/t/data-table-compare-two-periods-from-different-years/207534/1 "2019-11-12T13:51:11Z")

</div>

Hello,

I know Timelion enables one to compare two different periods easily with Offset feature, however, do we have a workaround to mimic Offset for Data Table component? For example, I would have a table like so (consider spaces as columns/values):

> Product Expense(2018) Expense(2019) Difference  
> abc 1 3 2

or Month comparison

> Product Expense( **March** 2018) Expense( **March** 2019) Difference  
> abc 1 3 2

Thank you.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 15, 2019, 9:50pm UTC](https://discuss.elastic.co/t/data-table-compare-two-periods-from-different-years/207534/2 "2019-11-15T21:50:33Z")

</div>

This is possible in 7.4, [https://www.elastic.co/blog/kibana-7-4-0-released](https://www.elastic.co/blog/kibana-7-4-0-released), with custom time range for dashboard panels. You can add the data table visualization twice and provide a custom time range to compare different time periods

---

<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 13, 2019, 9:50pm UTC](https://discuss.elastic.co/t/data-table-compare-two-periods-from-different-years/207534/3 "2019-12-13T21:50:38Z")

</div>

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