Flux Set Displayname / Label

I try to change the display names like “w1_p_heat energie/huettenstrasse” to “Heatpower W1”
In MSSQL there is the AS statement.
In InfluxQL there was an alias by.
Neither seems to exist in Flux.
How can I change the display name?

Welcome to the Grafana forum.

You’re right…Using Flux does not have a readily available “alias” type of option.

You can use overrides to simplify the display names, like this:

I found another way to do this as of Grafana v9.4.1.

When building a panel, the queries are named (default is A, then B, etc). You can reference these query names in an override. You can also rename the queries to make them a bit more meaningful. For example:

image

Then, you can add an override for each query, and set the name of the result.

image

this way of doing it that you say does not work for me, could you explain it better, please?