-
What Grafana version and what operating system are you using?
-
v8.5.20
-
What are you trying to achieve?
-
I have a variable called ownerID which has 2 possible values
-
3 - Value 1
-
8 - Value 2
I want to use only the 3 or 8 as input to an SQL query in another variable.
In other words, if the user selects 3 - Value 1, the SQL query in the second variable would only use the 3
Example:
SELECT name
FROM tablex
where Id=“This is what I need - it should use the value 3”
-
How are you trying to achieve it?
I have tried regex but can’t get that to work -
What did you expect to happen?
I expect the SQL query to return the value name associated with Id = 3