# How to prefix $ symbol as part of Metric or Markdown

**URL:** https://discuss.elastic.co/t/how-to-prefix-symbol-as-part-of-metric-or-markdown/200259
**Category:** Kibana
**Tags:** canvas
**Created:** [September 19, 2019, 3:47pm UTC](https://discuss.elastic.co/t/how-to-prefix-symbol-as-part-of-metric-or-markdown/200259 "2019-09-19T15:47:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rajeev1](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@rajeev1](https://discuss.elastic.co/u/rajeev1)
#### Post date: [September 19, 2019, 3:47pm UTC](https://discuss.elastic.co/t/how-to-prefix-symbol-as-part-of-metric-or-markdown/200259/1 "2019-09-19T15:47:35Z")

</div>

I want to display a value prefixed with '$' in Metric as well as Markdown fields in Canvas. I know I can add a separate markdown field with just '$' symbol but the problem is that it is not scalable, if the value goes from 10k to 1 Mil then someone has to manually adjust the symbol. Is there anyway I can prefix the $ symbol as part of the field itself?

---

<div class="post-metadata">

### Author: ![rajeev1](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@rajeev1](https://discuss.elastic.co/u/rajeev1)
#### Post date: [September 19, 2019, 4:07pm UTC](https://discuss.elastic.co/t/how-to-prefix-symbol-as-part-of-metric-or-markdown/200259/2 "2019-09-19T16:07:03Z")

</div>

Figured out the solution. I can use the below function and it worked perfectly  
`| formatnumber format="$0,0"`

---

<div class="post-metadata">

### Author: ![tims](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tims/32/46750_2.png) [@tims](https://discuss.elastic.co/u/tims)
#### Post date: [October 8, 2019, 2:44pm UTC](https://discuss.elastic.co/t/how-to-prefix-symbol-as-part-of-metric-or-markdown/200259/3 "2019-10-08T14:44:56Z")

</div>

Great news, thanks for posting the solution @rajeev1

---

<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: [November 5, 2019, 2:51pm UTC](https://discuss.elastic.co/t/how-to-prefix-symbol-as-part-of-metric-or-markdown/200259/4 "2019-11-05T14:51:37Z")

</div>

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