# Get all fields of the pie chart to one filter

**URL:** <https://discuss.elastic.co/t/get-all-fields-of-the-pie-chart-to-one-filter/274509>\
**Category:** Kibana\
**Created:** [May 31, 2021, 1:16pm UTC](https://discuss.elastic.co/t/get-all-fields-of-the-pie-chart-to-one-filter/274509 "2021-05-31T13:16:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HieuTranTH](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@HieuTranTH](https://discuss.elastic.co/u/HieuTranTH)\
**Post date:** [May 31, 2021, 1:16pm UTC](https://discuss.elastic.co/t/get-all-fields-of-the-pie-chart-to-one-filter/274509/1 "2021-05-31T13:16:48Z")

</div>

Hello everybody, I'm having this tedious issue which you may know solution for it.

Normally I get this kind of pie chart after some filtering on the data set.

 ![Screenshot from 2021-05-31 15-56-27](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca0118a9da414868a096fe8da3cbda49dcfcfbc1.png)  
And if I click on one of the field, it adds an extra filter for that field  
 ![Screenshot from 2021-05-31 15-57-51](https://us1.discourse-cdn.com/elastic/original/3X/5/9/5992124fc576b7eed7b8ac9784564e95c1d03689.png)  
 ![Screenshot from 2021-05-31 15-58-05](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39fc522ef967dadae3ae44a0de1fbd2e7c4dfd7c.png)  
 ![Screenshot from 2021-05-31 15-58-18](https://us1.discourse-cdn.com/elastic/original/3X/6/4/64ca3122c4745935ecd8a8bf047c2abb2ae6c300.png)

However, I usually need to create a filter with all the current fields in the pie chart (for later analysis with other filters) like this:  
 ![Screenshot from 2021-05-31 15-59-27](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e7f1d924efcf439c05905d6c8d8d73f09f1f2465.png)

Is there any quick way for me to grab all the returned fields in the pie chart, or even simply the list of them in a text, so I can quickly create the filter without manually typing all the fields down?

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [May 31, 2021, 1:31pm UTC](https://discuss.elastic.co/t/get-all-fields-of-the-pie-chart-to-one-filter/274509/2 "2021-05-31T13:31:16Z")

</div>

Hey @HieuTranTH, I don't know if it helps but you can use Inspect to get the current values. You can also download them to a CSV format. For example:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/7/6711df55ea397bf9af473f158c987b7313dd7e08.png)

---

<div class="post-metadata">

**Author:** ![HieuTranTH](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@HieuTranTH](https://discuss.elastic.co/u/HieuTranTH)\
**Post date:** [May 31, 2021, 1:50pm UTC](https://discuss.elastic.co/t/get-all-fields-of-the-pie-chart-to-one-filter/274509/3 "2021-05-31T13:50:53Z")

</div>

Parsing the downloaded CSV file into a Elasticsearch Query DSL filter with an external script is a possible solution though it is quite manual. I hope someone might know a way directly in Kibana that can easily achieve this.

---

<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:** [June 28, 2021, 1:51pm UTC](https://discuss.elastic.co/t/get-all-fields-of-the-pie-chart-to-one-filter/274509/4 "2021-06-28T13:51:05Z")

</div>

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