# A string like "ABCDEFG" isn't allowed here ERROR  when using CSV variables with DQL on dashboards v2.0

**URL:** <https://community.dynatrace.com/t/a-string-like-abcdefg-isnt-allowed-here-error-when-using-csv-variables-with-dql-on-dashboards-v2-0/47414>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, notebooks\
**Created:** [August 30, 2024, 2:53pm UTC](https://community.dynatrace.com/t/a-string-like-abcdefg-isnt-allowed-here-error-when-using-csv-variables-with-dql-on-dashboards-v2-0/47414 "2024-08-30T14:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariettaAlmeida](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@MariettaAlmeida](https://community.dynatrace.com/u/MariettaAlmeida)\
**Post date:** [August 30, 2024, 2:53pm UTC](https://community.dynatrace.com/t/a-string-like-abcdefg-isnt-allowed-here-error-when-using-csv-variables-with-dql-on-dashboards-v2-0/47414/1 "2024-08-30T14:53:11Z")

</div>

hi all,

when using a list of variables with CSV option that references hypervisors and ESXI host tags, i get this error on DQL query:

--A string like “xxxx” isn’t allowed here. Please check the autocomplete suggestions before the error for alternative options.

![MariettaAlmeida_0-1725029007468.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/7/376566e705f29ac7d19b25530ce6dac0580f3adf.png)

i’ve tried 2 ways of doing this, the first one launched the error mentiones above:

![MariettaAlmeida_1-1725029100374.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/4/84d9a6e09fddc0ae1ab8b4c4d1ab6ee46aa45145.png)

the second atempt shows he cpu comsuption by cluster which is the needed metric but i cant select by variable, how can i do that’

 ![MariettaAlmeida_3-1725029527766.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/3/e392067eaf61ded9a9f1906bba38163e18fb1d5b.png)

timeseries usage = avg(dt.cloud.vmware.hypervisor.cpu.usage), by: { dt.entity.hypervisor },  
filter: { in(dt.entity.hypervisor, classicEntitySelector("type(hypervisor), tag(\“vmware:PrXXXXXXX\”) ")) }  
| fieldsAdd entityName(dt.entity.hypervisor), usage = arrayAvg(usage)  
| sort usage desc

thank you in advance 🙂

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [August 30, 2024, 8:43pm UTC](https://community.dynatrace.com/t/a-string-like-abcdefg-isnt-allowed-here-error-when-using-csv-variables-with-dql-on-dashboards-v2-0/47414/2 "2024-08-30T20:43:37Z")

</div>

Using native DQL syntax it can be achieved this way…

I defined variable to match my demo data:

 ![krzysztof_hoja_0-1725050188804.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/9/29d8f48c59bd5f923be9a829c22e07d44d154f05.png)

and DQL query taking this variable as input to filtering by tag looks like this:

```markup
fetch dt.entity.hypervisor
| fieldsAdd tags
| filter iAny( tags[] == concat("SYNCED_AIT:",$Cluster))

```

 ![krzysztof_hoja_1-1725050286028.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/3/2316e7f3472b9f8d8754975d827b63f04df237be.png)

It is also possible to use _**concat()**_ function together with _**classicEntitySelector()**_:

```markup
fetch dt.entity.hypervisor
| fieldsAdd tags
| filter in(id, classicEntitySelector(concat("type(hypervisor), tag(\"SYNCED_AIT:",$Cluster,"\")")))

```

 ![krzysztof_hoja_2-1725050545883.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/1/3140fb11365552942272e81dbdd45bc17dd2f82d.png)
