Alias By Grafana when I have condition

I have one query with three conditions (Fehler, Ok, and Slow). In the visualization, 472 is Ok, 56,255 is Slow, and 60,332 is Fehler. How can I define aliases for these?

I need Alias by to have right name but in the red field I dont know what to write

What do you see when you choose Table view of your panel?

What do you have in Display name field?

In fact my problem is alias… I have lange name for (OK, Fehler; Slow) I need to change it…take look what i earlier posted pls.
${__field.labels} its not working I need to write under die graf only Name.Fhelr or Name.Ok and Name.Slow

my code is :

SELECT mean(“0”) AS “Fehler”, mean(“1”) AS “OK”, mean(“Processing_slow_or_deactivated”) AS “Slow” FROM “XYZQUE” WHERE (“db” = ‘softwarehistorydb’ AND “type” = ‘24h’) AND $timeFilter GROUP BY time($__interval) fill(null)

Well, that doesn’t answer neither of my questions. What do you have in a table view?

If it looks like my example above, but with long names, you can change display name for each field by using overrides:

1 Like

thanks. with override is sloved