I have a modern dashboard setup to monitor the status of our diesel generators, when these are idle and not running the custom property shows the value of 0 and this is what gets displayed on the dashboard, ideally I would like this value to say either idle or running based on the custom property value.

I am currently using this swql statement below and the reported vales are 0 & Idle
select max(0+nodes.custompollerassignmentonnode.currentvalue) as Value,
case when nodes.custompollerassignmentonnode.currentvalue = 0 then 'Idle' else 'Running' end as Status
from orion.nodes
where nodeid = '1352' and nodes.custompollerassignmentonnode.custompollername like '%EngineSpeed'
group by nodes.custompollerassignmentonnode.currentvalue
I would like the dashboard to show the text rather than the numeric value, can someone please advise if this is possible and how I can achieve this?