# Combine multiple views into one graph

**URL:** <https://discuss.elastic.co/t/combine-multiple-views-into-one-graph/262127>\
**Category:** Kibana\
**Created:** [January 25, 2021, 3:51pm UTC](https://discuss.elastic.co/t/combine-multiple-views-into-one-graph/262127 "2021-01-25T15:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morbidel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morbidel/32/82859_2.png) [@morbidel](https://discuss.elastic.co/u/morbidel)\
**Post date:** [January 25, 2021, 3:51pm UTC](https://discuss.elastic.co/t/combine-multiple-views-into-one-graph/262127/1 "2021-01-25T15:51:48Z")

</div>

Hello,  
I'm using Kibana & Elastic search (version 7.0) for a while now, for various reports.  
For some reason, I'm unable to combine some charts which should obviously and easily be possible to combine as they share the same Y-axis (time of event) and X-axis (count of events).  
Some background of the data - these are exceptions thrown by an application, for which I keep several boolean flags (is it fatal, is it unhandled, etc).  
Generically, I'd like to add also other filters which in the end create a X/Y chart in the same space (count / time). Here are the graphs in separate graphs, which I'd like to have combined (the difference between them is the filter I'm applying).

 ![2021-01-25_16h48_32](https://us1.discourse-cdn.com/elastic/original/3X/1/2/12585d3d7e9e2738caa1b69b86168bd99621fdff.png)  
 ![2021-01-25_16h48_42](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b5f73a2c13b9efe8196cc22e05f962eddc6bd329.png)  
 ![2021-01-25_16h48_55](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f40b7dd063212e0104a7dd7775be0386ecb4ab0d.png)

So question is, how can I combine these 3 views (actually 3 filters on the same data) into one chart with split bars of the respective quantities?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [January 25, 2021, 8:50pm UTC](https://discuss.elastic.co/t/combine-multiple-views-into-one-graph/262127/2 "2021-01-25T20:50:10Z")

</div>

Hi and welcome to the forums. I'm pretty sure that you can do this using a Filters bucket aggregation, as long as you translate the queries you've written into KQL queries instead. The basic configuration is:

- Click "add sub-buckets" and choose the filters aggregation
- Type each KQL filter and give it a custom label

Then you'll see a stacked chart with a unique color per filter.

---

<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:** [February 22, 2021, 8:50pm UTC](https://discuss.elastic.co/t/combine-multiple-views-into-one-graph/262127/3 "2021-02-22T20:50:13Z")

</div>

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