# Dashboard CSV Variable and DQL filter in query

**URL:** <https://community.dynatrace.com/t/dashboard-csv-variable-and-dql-filter-in-query/49483>\
**Category:** Dashboarding\
**Tags:** dql, dashboards\
**Created:** [December 24, 2024, 11:13am UTC](https://community.dynatrace.com/t/dashboard-csv-variable-and-dql-filter-in-query/49483 "2024-12-24T11:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![almog50](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@almog50](https://community.dynatrace.com/u/almog50)\
**Post date:** [December 24, 2024, 11:13am UTC](https://community.dynatrace.com/t/dashboard-csv-variable-and-dql-filter-in-query/49483/1 "2024-12-24T11:13:26Z")

</div>

Hi,

I have the following DQL

```markup
fetch dt.entity.cloud_application, from: -30m 
| fields workload.name = entity.name, workload.labels = cloudApplicationLabels
| filter in(workload.name,array( $workload_name ))
| fields service = workload.name, version = workload.labels[`app.kubernetes.io/version`]

```

$workload\_name is a CSV variable

I want the query to list every to find every value in the $workload\_name but it return only the first value in the CSV variable

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [December 24, 2024, 12:15pm UTC](https://community.dynatrace.com/t/dashboard-csv-variable-and-dql-filter-in-query/49483/2 "2024-12-24T12:15:24Z")

</div>

This should work if you use the multi-select option:

```markup
fetch dt.entity.cloud_application, from: -30m 
| fields workload.name = entity.name, workload.labels = cloudApplicationLabels
| filter in(workload.name, $workload_name)
| fields service = workload.name, version = workload.labels[`app.kubernetes.io/version`]

```

 ![sia_h_0-1735042504027.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/6/16c96f8cc49e0bfbc8cc582349d910a6141b5b50.png)

---

<div class="post-metadata">

**Author:** ![almog50](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@almog50](https://community.dynatrace.com/u/almog50)\
**Post date:** [December 24, 2024, 12:23pm UTC](https://community.dynatrace.com/t/dashboard-csv-variable-and-dql-filter-in-query/49483/3 "2024-12-24T12:23:36Z")

</div>

Thank you,

The solution works as intended. I did not want the variable to be displayed on the dashboard, it should remain a static variable. Additionally, I was unaware that the Multi-select option under display settings would impact the results.

 ![almog50_0-1735042921074.png](https://global.discourse-cdn.com/dynatrace/original/1X/41f2574e67b5b044aca2bad28d087072df96fb24.png)
