# How to solve duplicated name columns with filters in visualization?

**URL:** https://discuss.elastic.co/t/how-to-solve-duplicated-name-columns-with-filters-in-visualization/171292
**Category:** Kibana
**Tags:** elastic-stack-graph
**Created:** [March 7, 2019, 11:40am UTC](https://discuss.elastic.co/t/how-to-solve-duplicated-name-columns-with-filters-in-visualization/171292 "2019-03-07T11:40:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FranHernandez](https://avatars.discourse-cdn.com/v4/letter/f/d07c76/32.png) [@FranHernandez](https://discuss.elastic.co/u/FranHernandez)
#### Post date: [March 7, 2019, 11:40am UTC](https://discuss.elastic.co/t/how-to-solve-duplicated-name-columns-with-filters-in-visualization/171292/1 "2019-03-07T11:40:20Z")

</div>

Hi experts!

Im noob with ElasticSearch and Kibana.  
After severals days investing how to solve my porblem, I couldnt find solution...

My problem is:

I have 2 collection in ES:

- BytesRX
- BytesTX

I have a common column name on both collections (DiscardedFrameRatio)

To diferenciate this column, each collection have a label called "FileName" (BytesRX and BytesTX)  
My problem is during the visualization of my data with Kibana

How can I show in the same Dashboard both labels, with their respectives aggr (max,min,avg)?

I think that my problem is with the filters, but I dont know how to proceed

With this code, in Dev Tool, provide me the correct answer:

```
GET /test-*/_search?size=0

```

{  
"aggs" : {  
"fileFilter" : {  
"filters" : {  
"filters" : {  
"BytesRXFilter" : { "match" : { "FileName" : "BytesRX" }},  
"BytesTXFilter" : { "match" : { "FileName" : "BytesTX" }}  
}  
},  
"aggs" : {  
"maxEach" : { "max": { "field" : "DiscardedFrameRatio" } }  
}  
}  
}  
}

can someone help me or provide me the "clue" to find how to visualize data filtering by Filename?

Thanks in advance!

---

<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: [April 4, 2019, 11:40am UTC](https://discuss.elastic.co/t/how-to-solve-duplicated-name-columns-with-filters-in-visualization/171292/2 "2019-04-04T11:40:21Z")

</div>

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