# How to display a "string" metric

**URL:** <https://discuss.elastic.co/t/how-to-display-a-string-metric/327815>\
**Category:** Kibana\
**Tags:** dashboard, visualisation\
**Created:** [March 16, 2023, 7:20am UTC](https://discuss.elastic.co/t/how-to-display-a-string-metric/327815 "2023-03-16T07:20:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinrik](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tinrik](https://discuss.elastic.co/u/tinrik)\
**Post date:** [March 16, 2023, 7:20am UTC](https://discuss.elastic.co/t/how-to-display-a-string-metric/327815/1 "2023-03-16T07:20:58Z")

</div>

Hi!

I want to display a single string in my dashboard - a hash that represents the commit hash of the repo from which the visualized data was generated.

Ideally I'd like to use the "Metric" visualization, since it's one single big box of text, but it only supports numerical values. Do you have suggestions on how I could achieve this goal?

There is of course markdown, but that is hardcoded text, not fetched from the index.

Thanks!

---

<div class="post-metadata">

**Author:** ![drewdaemon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewdaemon/32/97779_2.png) [@drewdaemon](https://discuss.elastic.co/u/drewdaemon)\
**Post date:** [April 10, 2023, 8:34pm UTC](https://discuss.elastic.co/t/how-to-display-a-string-metric/327815/2 "2023-04-10T20:34:57Z")

</div>

Hi @tinrik ! The Lens Metric doesn't yet support non-numeric values. You can track the progress of this feature with this issue here: [[Lens] Allow non-numeric metrics for metric vis · Issue #137756 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/137756)

How would your hash be stored in Elasticsearch? Would it be contained in a single document? You could use a Legacy metric with the Lens "last value" function to retrieve the most recent value.

Let me know if this helps!

---

<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:** [May 8, 2023, 8:35pm UTC](https://discuss.elastic.co/t/how-to-display-a-string-metric/327815/3 "2023-05-08T20:35:33Z")

</div>

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