# Setting gauge based on conditional values

**URL:** <https://forums.losant.com/t/setting-gauge-based-on-conditional-values/2048>\
**Category:** Help\
**Tags:** dashboard\
**Created:** [August 2, 2019, 8:31pm UTC](https://forums.losant.com/t/setting-gauge-based-on-conditional-values/2048 "2019-08-02T20:31:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sreyams\_Jain1](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Sreyams\_Jain1](https://forums.losant.com/u/Sreyams_Jain1)\
**Post date:** [August 2, 2019, 8:31pm UTC](https://forums.losant.com/t/setting-gauge-based-on-conditional-values/2048/1 "2019-08-02T20:31:18Z")

</div>

I have a device with following attributes - machineID, spindleID, rpm, doorStatus  
I have a dashboard with 2 gauges to be shown based on what I send to this device.  
If machineID=1 and spindleID=1 show rpm on gauge 1  
if machineID=1 and spindleID=2 show rpm on gauge 2

How can I put the conditional statements onto gauges?

I was trying like -  
{{value.machineID}}==1 && {{value.spindleID}} == 1 on gauge 1  
{{value.machineID}}==1 && {{value.spindleID}} == 2 on gauge 2

This does not work … I get same rpm reading on both gauges

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [August 2, 2019, 8:39pm UTC](https://forums.losant.com/t/setting-gauge-based-on-conditional-values/2048/2 "2019-08-02T20:39:36Z")

</div>

Hi @Sreyams_Jain1,

The Gauge Block does not support conditionals like the Indicator Block, as it only supports conditional coloring. A conditional could be done in an Experience with some custom Javascript, but this is not configurable within the dashboard itself. In the meantime, the Indicator Block may be the best solution for the functionality you are seeking, or I can create a feature request for this if you would like. 😄

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![Sreyams\_Jain1](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Sreyams\_Jain1](https://forums.losant.com/u/Sreyams_Jain1)\
**Post date:** [August 5, 2019, 11:40am UTC](https://forums.losant.com/t/setting-gauge-based-on-conditional-values/2048/3 "2019-08-05T11:40:16Z")

</div>

Yes, please create a feature request on this. This will really help.
