# Getting full string in Kibana Datatable

**URL:** <https://discuss.elastic.co/t/getting-full-string-in-kibana-datatable/193368>\
**Category:** Kibana\
**Created:** [August 1, 2019, 3:47pm UTC](https://discuss.elastic.co/t/getting-full-string-in-kibana-datatable/193368 "2019-08-01T15:47:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdul\_Jaleel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdul_jaleel/32/44394_2.png) [@Abdul\_Jaleel](https://discuss.elastic.co/u/Abdul_Jaleel)\
**Post date:** [August 1, 2019, 3:47pm UTC](https://discuss.elastic.co/t/getting-full-string-in-kibana-datatable/193368/1 "2019-08-01T15:47:11Z")

</div>

One of the field I have with value is listed below  
**"Category": [**  
**"Book",**  
**"Novel",**  
**"English"**  
**]**

Creating **datatable** visualization with term shows only **Category.keyword**. since **Category** is non Aggregatable . Creating datatable with **Category.keyword** splits the value into 3 records and listing 3 entries. I need to create data table which will list all 3 values as "Book, Novel, English"

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [August 2, 2019, 10:01pm UTC](https://discuss.elastic.co/t/getting-full-string-in-kibana-datatable/193368/2 "2019-08-02T22:01:34Z")

</div>

Hi @Abdul_Jaleel,

You could try using [scripted fields](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html) to do this. By creating a string field that joins the items in the list together, you might get the result you are looking for:

```auto
doc['category'].join(', ')

```

This should convert `["Book", "Novel", "English"]` to `"Book, Novel, English"`

Then just use your new scripted field in the data table visualization instead

---

<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 30, 2019, 10:01pm UTC](https://discuss.elastic.co/t/getting-full-string-in-kibana-datatable/193368/3 "2019-08-30T22:01:44Z")

</div>

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