# Plot 2 line with different filter on the same canvas

**URL:** https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698
**Category:** Kibana
**Tags:** lens
**Created:** [August 25, 2023, 3:02pm UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698 "2023-08-25T15:02:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fdevoto](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fdevoto](https://discuss.elastic.co/u/fdevoto)
#### Post date: [August 25, 2023, 3:02pm UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698/1 "2023-08-25T15:02:14Z")

</div>

Hello,  
I am really newbie in Elastic/Kibana etc sorry if my teminology is not correct.

I am trying to create a line plot with two lines, each line has a different filter.  
I can create the 2 plots separately, but I don't know how to overlap them.

All the data are on the same Index/Data view, I just would like, when I add another layer to the plot, to have the possibility to give another set of filters.

Is this possible?

I am using Kibana 8.5

Thanks

---

<div class="post-metadata">

### Author: ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)
#### Post date: [August 28, 2023, 7:27am UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698/2 "2023-08-28T07:27:26Z")

</div>

Hi @fdevoto

welcome to the Kibana community.  
Are you using the Canvas app or it's ok to use the Lens editor as well?

---

<div class="post-metadata">

### Author: ![fdevoto](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fdevoto](https://discuss.elastic.co/u/fdevoto)
#### Post date: [August 29, 2023, 7:15am UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698/3 "2023-08-29T07:15:18Z")

</div>

Hi @Marco_Liberati,

I am mainly using the Lens editor, I didn't use the Canvas app yet, but I am happy to learn 🙂

Francesco

---

<div class="post-metadata">

### Author: ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)
#### Post date: [August 29, 2023, 7:31am UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698/4 "2023-08-29T07:31:14Z")

</div>

It's ok with Lens, just trying to understand as the title was a bit confusing.

 ![Screenshot 2023-08-29 at 09.30.02](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fcf1c5b0f06d04729864d6d38a116f6e1244c9dc.png)

If the dataView used is the same for both, it is possible to define a filter for each metric dimension in Lens:

 ![Screenshot 2023-08-29 at 09.30.12](https://us1.discourse-cdn.com/elastic/original/3X/8/4/84733df10ba8b14e6a2382ba3b23af238eee3d07.jpeg)

---

<div class="post-metadata">

### Author: ![fdevoto](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fdevoto](https://discuss.elastic.co/u/fdevoto)
#### Post date: [August 29, 2023, 7:45am UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698/5 "2023-08-29T07:45:32Z")

</div>

Hi @Marco_Liberati,

that's perfect! Thanks a lot!

I missed the filter in the Advanced option.

Francesco

---

<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 26, 2023, 7:46am UTC](https://discuss.elastic.co/t/plot-2-line-with-different-filter-on-the-same-canvas/341698/6 "2023-09-26T07:46:15Z")

</div>

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