I have an SQL table with columns: name and user type.
Name | type |
---|---|
John | student |
Tom | teacher |
Peter | teacher |
Steve | student |
I want to have a grafana variable where I can select a user "type" and the variable passes the value of all the "names" corresponding to that "type" to the dashboard.
I found this example - https://grafana.com/blog/2019/07/17/ask-us-anything-how-to-alias-dashboard-variables-in-grafana-in-sql/ which lets me alias a one to one mapping, but I am looking for a one to many mapping.