# Datatable config case help

**URL:** <https://discuss.elastic.co/t/datatable-config-case-help/68123>\
**Category:** Kibana\
**Created:** [December 6, 2016, 2:47am UTC](https://discuss.elastic.co/t/datatable-config-case-help/68123 "2016-12-06T02:47:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 6, 2016, 7:22pm UTC](https://discuss.elastic.co/t/datatable-config-case-help/68123/2 "2016-12-06T19:22:43Z")

</div>

Hi Joodies,

I'm guessing `a` and `b` are values of `type`  
and `new`, `wip`, and `done` are values of `status`

So you're trying to create a data table with terms across the top and down the side. Unfortunately Kibana can't do that (yet). But I came up with a hack of a work-around.

I create test data using the Dev Tools console like this;

```auto
PUT index1/type1/1
{
  "type": "a",
  "status": "new"
}

PUT index1/type1/2
{
  "type": "a",
  "status": "wip"
}

PUT index1/type1/3
{
  "type": "b",
  "status": "new"
}

PUT index1/type1/4
{
  "type": "b",
  "status": "new"
}

PUT index1/type1/5
{
  "type": "a",
  "status": "done"
}

```

Then I created an index pattern in Kibana for `index1`.  
Then I created 3 scripted fields by going on that index pattern so that I would have a field for each of those status values that are either 1 or 0;

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/7e3f04e41f8292bd828a1fc3075f158609a85e22.png)

Then I created the Data Table visualization as shown below;

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/30822f56742fee54cdd2bd49006e62f0ec01f652.png)

Regards,  
Lee

---

_[View the full topic](https://discuss.elastic.co/t/datatable-config-case-help/68123)._
