# Unable to use scripted field in TSVB sum aggregation..Please help

**URL:** https://discuss.elastic.co/t/unable-to-use-scripted-field-in-tsvb-sum-aggregation-please-help/244026
**Category:** Kibana
**Created:** [August 6, 2020, 1:06pm UTC](https://discuss.elastic.co/t/unable-to-use-scripted-field-in-tsvb-sum-aggregation-please-help/244026 "2020-08-06T13:06:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ashima\_Sachdeva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashima_sachdeva/32/73453_2.png) [@Ashima\_Sachdeva](https://discuss.elastic.co/u/Ashima_Sachdeva)
#### Post date: [August 6, 2020, 1:06pm UTC](https://discuss.elastic.co/t/unable-to-use-scripted-field-in-tsvb-sum-aggregation-please-help/244026/1 "2020-08-06T13:06:38Z")

</div>

unable to use scripted field in TSVB sum aggregation...only index pattern fields are coming in drop down.

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [August 6, 2020, 3:24pm UTC](https://discuss.elastic.co/t/unable-to-use-scripted-field-in-tsvb-sum-aggregation-please-help/244026/2 "2020-08-06T15:24:55Z")

</div>

hi @Ashima_Sachdeva

scripted fields are not supported in TSVB. It is an outstanding feature request though: [https://github.com/elastic/kibana/issues/13928](https://github.com/elastic/kibana/issues/13928) . I would add comments and feedback there

---

<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 3, 2020, 3:24pm UTC](https://discuss.elastic.co/t/unable-to-use-scripted-field-in-tsvb-sum-aggregation-please-help/244026/3 "2020-09-03T15:24:58Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Liza\_Katz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liza_katz/32/52358_2.png) [@Liza\_Katz](https://discuss.elastic.co/u/Liza_Katz)
#### Post date: [September 23, 2021, 11:32am UTC](https://discuss.elastic.co/t/unable-to-use-scripted-field-in-tsvb-sum-aggregation-please-help/244026/4 "2021-09-23T11:32:14Z")

</div>

**Update** : Kibana now supports using [Runtime Fields](https://www.elastic.co/guide/en/elasticsearch/reference/master/runtime.html) in TSVB visualizations. They are available since 7.11 and are GA since 7.12.

Runtime fields will appear in TSVB just like any other field does (but might be slower to aggregate on).

 ![2021-09-23 14-30-55](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5a81ce244c91f9665987cb65ee84907d19d81cd8.png)
