How can I concatenate two variables and store result in other variable?

  • Grafana v9.3.6

  • How can I concat two constant variables into new one?
    I have two constant variables $app and $env and I would like to have another one $app_id=“$app-$env”

1 Like

Hi @ramankazhadub,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the FAQs in the community :slight_smile:

The $app_id variable will get the subtracted result from $app and $env?

e.g.

$app = 10
$env = 5

$app_id=“$app-$env” => (10-5) => 5