Is it possible to use global variables within the query for dashboard variables in Grafana?

For example, is it possible to use the username of the currently logged-in user as a dynamic parameter in the query? As shown in the following image:

try putting single quotes around the variable:

t.saleLeader = ‘${__user.login}’

thx, but it still exception when query

run the query explorer and see what it is doing?

Thanks, not in panel query。In panel query it alwasys working?

it excepiton, when i query with global variable in dashboard variable query as below:

copy paste the actual query text instead of an image. seems like you have some funkyness happening in your variable

Thanks a lot, it working :+1: