# Doing visualization from multiple documents

**URL:** https://discuss.elastic.co/t/doing-visualization-from-multiple-documents/113712
**Category:** Kibana
**Created:** [January 2, 2018, 2:48am UTC](https://discuss.elastic.co/t/doing-visualization-from-multiple-documents/113712 "2018-01-02T02:48:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Harsh\_Verma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_verma/32/26136_2.png) [@Harsh\_Verma](https://discuss.elastic.co/u/Harsh_Verma)
#### Post date: [January 2, 2018, 2:48am UTC](https://discuss.elastic.co/t/doing-visualization-from-multiple-documents/113712/1 "2018-01-02T02:48:28Z")

</div>

I have an index with documents having structure like

> ```
> {
> department:department_value, 
> employee_id:id_value
> }  
> and some more documents with structure like 
> {
> age:42, 
> tags:[
> {key:employee_id, value:id_value}
> ]
> }
> 
> ```

if I wanted to combine the data from these two documents in my visualization based on employee\_id, is there any way to do that in Kibana, or can I write a Elasticsearch query in Kibana for something like this? Or is there any visualization tool apart from Kibana for Elasticsearch that can support this?

---

<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: [January 2, 2018, 3:02am UTC](https://discuss.elastic.co/t/doing-visualization-from-multiple-documents/113712/2 "2018-01-02T03:02:13Z")

</div>

That's a join which Kibana or Elasticsearch cannot handle.  
You would be best off normalising/joining things before sending them for indexing.

---

<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 30, 2018, 3:02am UTC](https://discuss.elastic.co/t/doing-visualization-from-multiple-documents/113712/3 "2018-01-30T03:02:24Z")

</div>

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