# Is it possible to add threshold line on Lens in Kibana 7.6?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213>\
**Category:** Kibana\
**Tags:** lens\
**Created:** [June 23, 2020, 8:43am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213 "2020-06-23T08:43:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmk1995](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmk1995](https://discuss.elastic.co/u/mmk1995)\
**Post date:** [June 23, 2020, 8:43am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213/1 "2020-06-23T08:43:10Z")

</div>

There is no metrics and axes option in Lens visualization.  
Is it possible to add threshold line on Lens in Kibana 7.6?

Thank you.

---

<div class="post-metadata">

**Author:** ![mmk1995](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmk1995](https://discuss.elastic.co/u/mmk1995)\
**Post date:** [June 24, 2020, 1:56am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213/2 "2020-06-24T01:56:48Z")

</div>

any help pls?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 24, 2020, 12:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213/3 "2020-06-24T12:48:51Z")

</div>

Hi @mmk1995,

currently there is no way to add threshold lines in Lens, but it's a known feature request tracked here: [https://github.com/elastic/kibana/issues/55265](https://github.com/elastic/kibana/issues/55265)

There is a workaround for this which isn't nice but should work just fine - create a scripted field that always returns the same static number (the value of your threshold line). Then add a second metric of the `min` value of that scripted field to your visualization.

---

<div class="post-metadata">

**Author:** ![mmk1995](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmk1995](https://discuss.elastic.co/u/mmk1995)\
**Post date:** [June 30, 2020, 7:56am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213/4 "2020-06-30T07:56:56Z")

</div>

thanks for the workaround

---

<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:** [July 28, 2020, 8:10am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-threshold-line-on-lens-in-kibana-7-6/238213/5 "2020-07-28T08:10:13Z")

</div>

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