# Table visualization to compare documents in same index

**URL:** <https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379>\
**Category:** Kibana\
**Created:** [August 26, 2020, 3:54am UTC](https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379 "2020-08-26T03:54:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![singhabhisek](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@singhabhisek](https://discuss.elastic.co/u/singhabhisek)\
**Post date:** [August 26, 2020, 3:54am UTC](https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379/1 "2020-08-26T03:54:24Z")

</div>

Hi Team,

I have a single index in which I have multiple documents having same data structure. Basically I want to compare the two or more documents based on the application filter (or more filters) provided by the user. I can draw the graphs but facing challenge on table visualization. Could you please help on the following example:

Visualization required:

 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63bdda55624e28835342cdf6a495784c8d6d0f60.png)

Sample data -

`

| Date | Application | ID | Value | Time\_Taken | Count |
| --- | --- | --- | --- | --- | --- |
| 2020-08-20 | App1 | 1 | Action1 | 10 | 25 |
| 2020-09-20 | App1 | 2 | Action1 | 15 | 30 |
| 2020-10-21 | App1 | 3 | Action1 | 20 | 20 |
| 2020-08-20 | App1 | 1 | Action1 | 0 | 0 |
| 2020-09-20 | App1 | 2 | Action2 | 12 | 30 |
| 2020-10-21 | App1 | 3 | Action2 | 15 | 25 |
| 2020-08-22 | App2 | 1 | Action1 | 11 | 20 |
| 2020-09-20 | App2 | 2 | Action1 | 14 | 25 |
| 2020-10-21 | App2 | 3 | Action1 | 15 | 19 |

`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 26, 2020, 3:57am UTC](https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379/2 "2020-08-26T03:57:18Z")

</div>

Welcome to our community! 😃

Compare them in what manner?

---

<div class="post-metadata">

**Author:** ![singhabhisek](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@singhabhisek](https://discuss.elastic.co/u/singhabhisek)\
**Post date:** [August 26, 2020, 6:32am UTC](https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379/3 "2020-08-26T06:32:52Z")

</div>

Thanks Mark.

Apologies if I was not clear on the ask - somehow messed up with setting my sample data. Here is my data currently fed into elastic search:

| Date | Application | ID | Value | Time\_Taken | Count |
| --- | --- | --- | --- | --- | --- |
| 2020-08-20 | App1 | 1 | Action1 | 10 | 25 |
| 2020-08-20 | App1 | 1 | Action2 | 12 | 30 |
| 2020-08-20 | App1 | 1 | Action3 | 20 | 20 |
| 2020-08-22 | App2 | 2 | Action1 | 11 | 20 |
| 2020-08-22 | App2 | 2 | Action2 | 15 | 25 |
| 2020-08-22 | App2 | 2 | Action3 | 14 | 25 |
| 2020-10-21 | App1 | 3 | Action1 | 15 | 19 |
| 2020-10-21 | App1 | 3 | Action2 | 15 | 30 |

If you see the source data I have provided - there are two applications named App1 and App2. For these two applications, I have multiple execution on different date for which a different ID is generated like for Date : 2020-08-20 we have ID as 1, for date: 2020-08-22 I have ID as 2 and so on..

Now in my current Kibana dashboard, the user will apply the filter as - ` **Application : "App1" and Value : "Action1"** `

Based on that I need to show the comparison of response time and transaction count for the given label - **Action 1** in a single row.

In the attached image you would see, I am getting two rows currently. I want it to appear in a single row only and not in multiple rows.

Is there a way to merge them in a single row with multiple columns.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/1/0/10975ad5b37f2c84259628c1f0df8cefa60495e7.png)

---

<div class="post-metadata">

**Author:** ![singhabhisek](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@singhabhisek](https://discuss.elastic.co/u/singhabhisek)\
**Post date:** [August 30, 2020, 8:21am UTC](https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379/4 "2020-08-30T08:21:05Z")

</div>

Any suggestions?

---

<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:** [September 27, 2020, 8:21am UTC](https://discuss.elastic.co/t/table-visualization-to-compare-documents-in-same-index/246379/5 "2020-09-27T08:21:06Z")

</div>

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