Using dashboard variables in transformations doesn't work (v10.2.1)

i had trying to use the transformation “filter values” with dashboard variables $xxx but it doesn’t work as it’s explain in video on website (what’s new in Grafana v10.2) .
i’m using grafana on windows .
thanks for your help

i show more detail for my problem.
this link What's new in Grafana v10.2 | Grafana documentation ,explain in the chapter " Transformations" by video how use dashboard variable to filter by value.
but when i try ,grafana doesn’t show my $variable.

can you help or may be a bug ?

1 Like

Are there any regex expressions needed? This is for the dashboard variables?

It might not show it but does it work if you just manually add it?

thanks for your answers
manually doesn’ t work too
info: my variable is type text box with constant value. i wish that is not a problem type of variable ( string / number) ….

What happens if you use the Explore function with the data source and manually enter everything?

1 Like

if i set value manually that is ok
in query data source ,grafana show ${juy} and show also « (template variable) 414570 »
414570 is selected value

Is there any kind of variable result that might not be part of the requirement for the query? Or a regex that’s missing?

thanks a lot but my new question is :
does the functionality showed in video working with your dashboard ? because when i do the same operation (write $juy for example) in “transformation datas” ,if after i select “query” and return in “transformation datas” ,grafana change $juy by 0

to be sure that my explanations of this bug are understanding.

i tried this new functionality :

but in my case ,at this step nothing are displaying (template variable)

has anyone tried this functionality ?


Hi there

Thats exactly the video i also looked at and tried to reproduce the same with the variables in the transformation. But it does not work, also not in version 10.3 Is there maybe a special config needed for this in the backend somewhere? Thanks for reply.

Yes, transformationsVariableSupport

1 Like

perfect. I’m so happy. Thats the solution and now its working just as in the video :smile:

hi here
thanks for these informations because i did not know this configuration of grafana and now it is work also for me
nice day