How to get Grafana dashboard variables into flux query?

Hey @Franky1 and @T_Burns,

I have managed to replicate the call of Grafana variables as you stated.
Now i want to build it into a part of a text. What i want to do is a Query that looks like this:

Variable="${MyVariable}"

from(bucket: “MyBucket”)

|> range(start: v.timeRangeStart, stop: v.timeRangeStop)

|> filter(fn: (r) =>

r._measurement == "MyMeasurement" and

r.Generic_Name == "Weight_Indicator_Machine_**{Variable}**" 

)

I couldn’t make it work. Do you have any ideas how this might work?