# Simple Gauge value format

**URL:** <https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 21, 2024, 9:45am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662 "2024-05-21T09:45:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [May 21, 2024, 9:45am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/1 "2024-05-21T09:45:26Z")

</div>

I´m trying to add some format into a Gauge value, but I can´t, any idea how to do so?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/4092547a19268c4be0c243ad8a5d6a01223ab8f6.png)

In a text field it comes by default  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9ac6115e8d24ceae532c3af6386352206a7504dd.png)

when I add it as a prop:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/c/cc42506ac4838a4ab8bd1d2492e792fab581df89.png)

I got the error  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/f/9fa395bc6e61ad44db599a96547462c3f1c2334e.png)

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [May 21, 2024, 10:32am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/2 "2024-05-21T10:32:14Z")

</div>

You can't just add random props and hope they work.

How do you want the data formatted?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [May 21, 2024, 10:35am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/3 "2024-05-21T10:35:32Z")

</div>

Thanks. Instead 1843828728 I would lke 1,843 mb

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [May 21, 2024, 10:40am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/4 "2024-05-21T10:40:08Z")

</div>

Are you using the comma as the decimal separator, or as the hundreds separator?

For the mb units you can add that to the props.label.units.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [May 21, 2024, 10:40am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/5 "2024-05-21T10:40:39Z")

</div>

Right, we using . for milesimal separator here

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [May 21, 2024, 10:45am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/6 "2024-05-21T10:45:46Z")

</div>

I don't think you can have the number displayed with a comma as a hundreds seperator.

If your value of 1843828728 is actually 1843.828728, then you will need to do an expression on the value to divide your number by 1000000. And then set your props.label.maxDecimal the number of decimals you want to show.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [May 21, 2024, 10:47am UTC](https://forum.inductiveautomation.com/t/simple-gauge-value-format/90662/7 "2024-05-21T10:47:15Z")

</div>

ok thanks bschroeder
