# Environment variables

[Environment variables](https://app.datamin.io/env-variables) allow you to set variables in one place and reuse them in tasks of pipelines and metrics as **ENV\_variable\_name**.

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F8Ce6reQ3khL0BVx6SFJ0%2FScreenshot%202022-12-09%20at%2019.27.01.png?alt=media&#x26;token=e30efc83-afb3-4afd-b691-ebdd1330e798" alt=""><figcaption></figcaption></figure>

For example, if you have a KPI threshold equal to **100**, you can set its variable as **key="KPI\_THRESHOLD"** and **value=100** here and reuse it everywhere else as **ENV\_KPI\_THRESHOLD**.

<div><figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FpeimWXt6gCOsc8VDLtIs%2FScreenshot%202022-12-09%20at%2019.27.54.png?alt=media&#x26;token=c2c4630e-5ebe-4ff3-994f-843cb9e6fffe" alt=""><figcaption><p>Using environment variables in API Calls</p></figcaption></figure> <figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FAUcBrHquTqzySW1smYiA%2FScreenshot%202022-12-09%20at%2019.29.13.png?alt=media&#x26;token=80077f8b-358e-405e-9e0e-e002da774775" alt=""><figcaption><p>Using environment variables in Conditions or Aggregators</p></figcaption></figure> <figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FC7q5bkccRMLrWjctjhbY%2FScreenshot%202022-12-09%20at%2019.28.37.png?alt=media&#x26;token=a7a439f1-08a4-48ee-b437-bd9a3e59d6d2" alt=""><figcaption><p>Using environment variables in Queries</p></figcaption></figure></div>

Then if you want to make it **110** instead of **100**, you can do it in one place, instead of changing all of your workflows and metrics.

For more information take a look at our video tutorial:

{% embed url="<https://youtu.be/BQoFwRUqyEA>" %}
