# Straight-forward way to get a data table to display data

**URL:** https://discuss.elastic.co/t/straight-forward-way-to-get-a-data-table-to-display-data/210921
**Category:** Kibana
**Created:** [December 6, 2019, 4:55pm UTC](https://discuss.elastic.co/t/straight-forward-way-to-get-a-data-table-to-display-data/210921 "2019-12-06T16:55:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brandondash](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@brandondash](https://discuss.elastic.co/u/brandondash)
#### Post date: [December 6, 2019, 4:55pm UTC](https://discuss.elastic.co/t/straight-forward-way-to-get-a-data-table-to-display-data/210921/1 "2019-12-06T16:55:46Z")

</div>

Let's say I have a search set up in such a way as to guarantee that every doc it returns follows the same data model:

- name (string)
- a (number)
- b (number)
- c (number)

Now let's say I want to display these docs in a data table that has the most basic spreadsheet look-and-feel; e.g., order all the docs by field 'a', then list all the fields for every doc returned.

![example](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d7ba054abdbbaeabc1c503e473bdc20e7993a7f8.png)

The best I've been able to do is have my main metric be a Max aggregation on 'a', then split rows with a Terms aggregation on 'name'. That gives me the two of the fields I want. Beyond that I don't know what to do. Splitting rows again doesn't do it because that just makes a different bucket. I already have the docs I want. I just want to display more fields per row.

What next?

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [December 6, 2019, 6:37pm UTC](https://discuss.elastic.co/t/straight-forward-way-to-get-a-data-table-to-display-data/210921/2 "2019-12-06T18:37:16Z")

</div>

I think you can do this with save search

go to discover. select your index pattern  
select Name, Field-A, field-B, field-C and save that search

now on dashboard just add that save search

---

<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: [January 3, 2020, 6:37pm UTC](https://discuss.elastic.co/t/straight-forward-way-to-get-a-data-table-to-display-data/210921/3 "2020-01-03T18:37:19Z")

</div>

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