# Drilldown using scripted field

**URL:** https://discuss.elastic.co/t/drilldown-using-scripted-field/243747
**Category:** Kibana
**Created:** [August 4, 2020, 3:54pm UTC](https://discuss.elastic.co/t/drilldown-using-scripted-field/243747 "2020-08-04T15:54:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)
#### Post date: [August 4, 2020, 3:54pm UTC](https://discuss.elastic.co/t/drilldown-using-scripted-field/243747/1 "2020-08-04T15:54:29Z")

</div>

how to apply filter when chart is aggregated using scripted field?

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [August 5, 2020, 9:59pm UTC](https://discuss.elastic.co/t/drilldown-using-scripted-field/243747/2 "2020-08-05T21:59:52Z")

</div>

You can use a scripted field as a filter.  
They should up as part of your current view on the filter panel dropdowns.

Here is my scripted field test. I have to type in my value though. That is not getting displayed -

 ![Screen Shot 2020-08-05 at 5.58.52 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee2f1da24cde62f0205a28c70755a13db7361bae.jpeg)  
Thanks,  
Bhavya

---

<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 2, 2020, 9:59pm UTC](https://discuss.elastic.co/t/drilldown-using-scripted-field/243747/3 "2020-09-02T21:59:55Z")

</div>

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