Operations in variable

I’d like to apply some basic string operations on variables.
I have a Custom variable with values id123 : Label123,id24 : Label234

In the panel title I’d like to choose the value of this key : value variable format and leave the key for the query.


However I can’t find any docs about it

check this out

it should be

key1 : value,key2 : value

id123 : Label123,id24 : Label234

seems like you might have it swapped? and spacing is sensitive

1 Like

I have the same as you but the label preview does not show the same

What version of grafana?

I also tried as @yosiasz showed and use it like this

id1 : L1 , id2 : L2

Preview of values result is:



I am using Grafan ver 9 so will be good to know the version you are using.