How to uppercase a variable

I’m using grafana v8.5.5 and I created a custom variable env with values “dev,hom,pro” which is being used in a prometheus datasource with the value “metrics-${env}” in the Instance name filter and it’s working.
But now I need to capitalize this value to use in another data source to select a cluster with the same environment, for example cluster-HOM.
Is there any way to use something like “${env:uppercase}”?

I discovered a solution.
In my other datasource I put the expression in “Instance name filter”
And it worked.