# Kibana Canvas Pie Chart showing data from two different queries

**URL:** <https://discuss.elastic.co/t/kibana-canvas-pie-chart-showing-data-from-two-different-queries/199791>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [September 17, 2019, 9:02am UTC](https://discuss.elastic.co/t/kibana-canvas-pie-chart-showing-data-from-two-different-queries/199791 "2019-09-17T09:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladpov](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@Vladpov](https://discuss.elastic.co/u/Vladpov)\
**Post date:** [September 17, 2019, 9:02am UTC](https://discuss.elastic.co/t/kibana-canvas-pie-chart-showing-data-from-two-different-queries/199791/1 "2019-09-17T09:02:47Z")

</div>

Hi everybody!

I have two tables where I have opposite results that I'd like to see together in some chart (Pie Chart if possible 😃 )

The queries are almost the same:

```
| essql query="select num1.keyword from dataframelast where suffix.keyword in ('mt','dn') group by num1.keyword having count (distinct suffix.keyword) = 2"

| essql query="select num1.keyword from dataframelast where suffix.keyword in ('mt','dn') group by num1.keyword having count (distinct suffix.keyword) = 1"

```

 ![Sn%C3%ADmek%20obrazovky%20(71)](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d7b81d0a10ea600a4282a1e15d96c5ac4a7f540.png)

Is it possible that each result would have different colour and I can see number or percentage of each?

Do you have any suggestion for element which could solve that?

Thank you for any replies in advance!

---

<div class="post-metadata">

**Author:** ![monfera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monfera/32/26467_2.png) [@monfera](https://discuss.elastic.co/u/monfera)\
**Post date:** [September 17, 2019, 1:52pm UTC](https://discuss.elastic.co/t/kibana-canvas-pie-chart-showing-data-from-two-different-queries/199791/2 "2019-09-17T13:52:39Z")

</div>

It's not currently possible to feed a chart from multiple queries, in part because there's no row union function yet. So the SQL query should be set up such that a single query can return the requisite input.

---

<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:** [October 15, 2019, 1:52pm UTC](https://discuss.elastic.co/t/kibana-canvas-pie-chart-showing-data-from-two-different-queries/199791/3 "2019-10-15T13:52:45Z")

</div>

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