Hi!
Grafana v10.4.1
I would like a list of data to be passed as a custom variable to the query when selecting a specific key.
I have the following information:
Sam is in the green group
Nickname in the green group
Victoria is in the green group
Jerry is in the purple group
Chris is in the purple group
In this case, “purple group” and “green group” are the keys, аnd people are the value
I want “green group” to be passed to the variable when selecting “Sam, Nickname, Victoria”
For example
SQL query
" select * FROM mytable
where employee_username in ($group)"
in such a drop-down menu there are such groups
And the request would be like this for execution
"
select * FROM mytable
where employee_username in (‘Sam’, ‘Nickname’, ‘Victoria’)
"
This doesn’t work: