# Data table using "key" vs. "key\_as\_String"

**URL:** <https://discuss.elastic.co/t/data-table-using-key-vs-key-as-string/215802>\
**Category:** Kibana\
**Created:** [January 20, 2020, 10:04pm UTC](https://discuss.elastic.co/t/data-table-using-key-vs-key-as-string/215802 "2020-01-20T22:04:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfcantu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jfcantu/32/60853_2.png) [@jfcantu](https://discuss.elastic.co/u/jfcantu)\
**Post date:** [January 20, 2020, 10:04pm UTC](https://discuss.elastic.co/t/data-table-using-key-vs-key-as-string/215802/1 "2020-01-20T22:04:46Z")

</div>

Hi all,

I'm having the same problem referenced in this thread: [Kibana Data Table Date Histogram Aggregation Useless labels](https://discuss.elastic.co/t/kibana-data-table-date-histogram-aggregation-useless-labels/182495/3) - namely, when I split a table and use a Date Histogram aggregation, the column labels appear in epoch time rather than a human-readable format, even when I explicitly specify `format`.

Although, inspecting the response data, I think I see the problem - the formatted date is returned in `key_as_string`, but `key` is still in epoch time. I'm assuming that Kibana is using `key` as the column label rather than `key_as_string`.

Is this intentional, and/or is there a way to force Kibana to use `key_as_string`?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [January 21, 2020, 10:08am UTC](https://discuss.elastic.co/t/data-table-using-key-vs-key-as-string/215802/2 "2020-01-21T10:08:47Z")

</div>

Hi, which version of Kibana are you using? If this is your issue: [https://github.com/elastic/kibana/issues/33010](https://github.com/elastic/kibana/issues/33010) it should be fixed in 7.2.0 and later.

---

<div class="post-metadata">

**Author:** ![jfcantu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jfcantu/32/60853_2.png) [@jfcantu](https://discuss.elastic.co/u/jfcantu)\
**Post date:** [January 21, 2020, 4:54pm UTC](https://discuss.elastic.co/t/data-table-using-key-vs-key-as-string/215802/3 "2020-01-21T16:54:19Z")

</div>

It's 7.1.1, looks like. (We're using AWS' managed ES service, so, we're stuck with whatever they deign to give us.) I'll look around and see if there's a way they allow it to be upgraded.

Thank you!

---

<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:** [February 18, 2020, 4:54pm UTC](https://discuss.elastic.co/t/data-table-using-key-vs-key-as-string/215802/4 "2020-02-18T16:54:25Z")

</div>

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