# Where to input transformation code? (Was: How to hide zero or null values in Legend in Grafana 8)

**URL:** <https://community.grafana.com/t/where-to-input-transformation-code-was-how-to-hide-zero-or-null-values-in-legend-in-grafana-8/88617>\
**Category:** Dashboards\
**Created:** [May 30, 2023, 12:55pm UTC](https://community.grafana.com/t/where-to-input-transformation-code-was-how-to-hide-zero-or-null-values-in-legend-in-grafana-8/88617 "2023-05-30T12:55:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grafanaclouddfdb](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@grafanaclouddfdb](https://community.grafana.com/u/grafanaclouddfdb)\
**Post date:** [May 30, 2023, 12:55pm UTC](https://community.grafana.com/t/where-to-input-transformation-code-was-how-to-hide-zero-or-null-values-in-legend-in-grafana-8/88617/1 "2023-05-30T12:55:22Z")

</div>

Continuing the discussion from [How to hide zero or null values in Legend in Grafana 8?](https://community.grafana.com/t/how-to-hide-zero-or-null-values-in-legend-in-grafana-8/54369/8):

> [@How to hide zero or null values in Legend in Grafana 8?](https://community.grafana.com/t/how-to-hide-zero-or-null-values-in-legend-in-grafana-8/54369/8):
>
> `transformNull(-1)` to turn all the nulls to `-1` (or a value that works for you)  
> followed by  
> `minimumAbove(-1)`

@rmortyh thank you for the idea - where can I input these commands/code?  
Is this related to thequery for your specific connector (I use Elasticsearch), or is it a Grafana post-processing code?

---

<div class="post-metadata">

**Author:** ![grafanaclouddfdb](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@grafanaclouddfdb](https://community.grafana.com/u/grafanaclouddfdb)\
**Post date:** [May 31, 2023, 11:11am UTC](https://community.grafana.com/t/where-to-input-transformation-code-was-how-to-hide-zero-or-null-values-in-legend-in-grafana-8/88617/2 "2023-05-31T11:11:26Z")

</div>

I found it - it was quite obvious actually. This is the “Transform” tab

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