Transform Influx Result to true/false

Welcome @jkoopmann

Have you considered using Value Mappings in Grafana? Something like this:

When value = 3

When value = 19

Is the output always 3 or 19?

I monitor the error codes on a motor VFD and there are about 30 codes. I just put each of them into Grafana as a value mapping and then the “plain English” text is displayed instead of the two-digit code.