# Create a parameter with multiple values

**URL:** <https://community.dynatrace.com/t/create-a-parameter-with-multiple-values/41837>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards\
**Created:** [September 28, 2023, 6:26pm UTC](https://community.dynatrace.com/t/create-a-parameter-with-multiple-values/41837 "2023-09-28T18:26:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostellod](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kostellod](https://community.dynatrace.com/u/kostellod)\
**Post date:** [September 28, 2023, 6:26pm UTC](https://community.dynatrace.com/t/create-a-parameter-with-multiple-values/41837/1 "2023-09-28T18:26:38Z")

</div>

Is there a way for me to create a parameter that represents multiple values? For example, I want to filter a metric by 3 different values for a field, and possibly another value for a second field. In pseudo-code, it would be something like

If tag = “DEV” then filter by env=development, app\_name=MyApp1 or MyApp2 or MyApp3

If tag = “PROD” then filter by env=production, app\_name=MyApp1 or MyApp2 or MyApp3

Is this doable?

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 13, 2023, 2:13pm UTC](https://community.dynatrace.com/t/create-a-parameter-with-multiple-values/41837/2 "2023-12-13T14:13:37Z")

</div>

Hello&nbsp;[@kostellod](https://community.dynatrace.com/user/64254)&nbsp;,  
Multi-select variables allow for such use cases from our side. See the example on the screenshots below and let me know if you need anything else!

```c-mrkdwn__pre
fetch logs, scanLimitGBytes:10
| summarize count(), alias:loglines, by:{bin(timestamp, 1m), alias:timeframe, status}
| filter in(status, array($Status))

```

 ![image.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/2/029e6217faff14b7e615e9a51beb65e5e135c3a0.png)

 ![image (1).png](https://global.discourse-cdn.com/dynatrace/original/3X/1/8/183f8ac85b4167c217f7ba35b02f2fc27d6d066d.png)

 ![image (2).png](https://global.discourse-cdn.com/dynatrace/original/3X/6/1/61609b76392efd6e98e317f76e0773e303183202.png)

---

<div class="post-metadata">

**Author:** ![kostellod](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kostellod](https://community.dynatrace.com/u/kostellod)\
**Post date:** [January 2, 2024, 9:04pm UTC](https://community.dynatrace.com/t/create-a-parameter-with-multiple-values/41837/3 "2024-01-02T21:04:06Z")

</div>

That allows you to set a single variable to multiple values. I want to set multiple variables based on a tag.

---

<div class="post-metadata">

**Author:** ![gbaudart](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Post date:** [January 10, 2024, 10:24pm UTC](https://community.dynatrace.com/t/create-a-parameter-with-multiple-values/41837/4 "2024-01-10T22:24:57Z")

</div>

[@kostellod](https://community.dynatrace.com/user/64254)

Do you have try with this filter option “multi-select” ?

 ![gbaudart_0-1704925440721.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/2/d2cf0432852a30289b092df114582877bf2c2f9f.png)
