<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic A string like &amp;quot;ABCDEFG&amp;quot; isn't allowed here ERROR  when using CSV variables with DQL on dashboards v2.0 in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/A-string-like-quot-ABCDEFG-quot-isn-t-allowed-here-ERROR-when/m-p/254604#M1157</link>
    <description>&lt;P&gt;hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when using a list of variables with CSV option that references hypervisors and ESXI host tags, i get this error on DQL query:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--A string like "xxxx" isn't allowed here. Please check the autocomplete suggestions before the error for alternative options.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariettaAlmeida_0-1725029007468.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22125i5DE3BA352ED16BAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariettaAlmeida_0-1725029007468.png" alt="MariettaAlmeida_0-1725029007468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i've tried 2 ways of doing this, the first one launched the error mentiones above:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariettaAlmeida_1-1725029100374.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22127iDA3EA4D2A95734EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariettaAlmeida_1-1725029100374.png" alt="MariettaAlmeida_1-1725029100374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;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'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariettaAlmeida_3-1725029527766.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22129i8EDE7666684FF64C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariettaAlmeida_3-1725029527766.png" alt="MariettaAlmeida_3-1725029527766.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;timeseries usage = avg(dt.cloud.vmware.hypervisor.cpu.usage), by: { dt.entity.hypervisor },&lt;BR /&gt;filter: { in(dt.entity.hypervisor, classicEntitySelector("type(hypervisor), tag(\"vmware:PrXXXXXXX\") ")) }&lt;BR /&gt;| fieldsAdd entityName(dt.entity.hypervisor), usage = arrayAvg(usage)&lt;BR /&gt;| sort usage desc&lt;/P&gt;
&lt;P&gt;thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 11:43:09 GMT</pubDate>
    <dc:creator>MariettaAlmeida</dc:creator>
    <dc:date>2024-09-02T11:43:09Z</dc:date>
    <item>
      <title>A string like "ABCDEFG" isn't allowed here ERROR  when using CSV variables with DQL on dashboards v2.0</title>
      <link>https://community.dynatrace.com/t5/DQL/A-string-like-quot-ABCDEFG-quot-isn-t-allowed-here-ERROR-when/m-p/254604#M1157</link>
      <description>&lt;P&gt;hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when using a list of variables with CSV option that references hypervisors and ESXI host tags, i get this error on DQL query:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--A string like "xxxx" isn't allowed here. Please check the autocomplete suggestions before the error for alternative options.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariettaAlmeida_0-1725029007468.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22125i5DE3BA352ED16BAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariettaAlmeida_0-1725029007468.png" alt="MariettaAlmeida_0-1725029007468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i've tried 2 ways of doing this, the first one launched the error mentiones above:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariettaAlmeida_1-1725029100374.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22127iDA3EA4D2A95734EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariettaAlmeida_1-1725029100374.png" alt="MariettaAlmeida_1-1725029100374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;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'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariettaAlmeida_3-1725029527766.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22129i8EDE7666684FF64C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariettaAlmeida_3-1725029527766.png" alt="MariettaAlmeida_3-1725029527766.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;timeseries usage = avg(dt.cloud.vmware.hypervisor.cpu.usage), by: { dt.entity.hypervisor },&lt;BR /&gt;filter: { in(dt.entity.hypervisor, classicEntitySelector("type(hypervisor), tag(\"vmware:PrXXXXXXX\") ")) }&lt;BR /&gt;| fieldsAdd entityName(dt.entity.hypervisor), usage = arrayAvg(usage)&lt;BR /&gt;| sort usage desc&lt;/P&gt;
&lt;P&gt;thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:43:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/A-string-like-quot-ABCDEFG-quot-isn-t-allowed-here-ERROR-when/m-p/254604#M1157</guid>
      <dc:creator>MariettaAlmeida</dc:creator>
      <dc:date>2024-09-02T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: A string like "XXXX" isn't allowed here ERROR  when using CSV variables with DQL on dashboars v2.0</title>
      <link>https://community.dynatrace.com/t5/DQL/A-string-like-quot-ABCDEFG-quot-isn-t-allowed-here-ERROR-when/m-p/254625#M1158</link>
      <description>&lt;P&gt;Using native DQL syntax it can be achieved this way....&lt;/P&gt;&lt;P&gt;I defined variable to match my demo data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1725050188804.png" style="width: 815px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22131iEE5B2BA0E0354537/image-dimensions/815x294?v=v2" width="815" height="294" role="button" title="krzysztof_hoja_0-1725050188804.png" alt="krzysztof_hoja_0-1725050188804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and DQL query taking this variable as input to filtering by tag looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.hypervisor
| fieldsAdd tags
| filter iAny( tags[] == concat("SYNCED_AIT:",$Cluster))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1725050286028.png" style="width: 846px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22132i49BA604AE07F0FF9/image-dimensions/846x222?v=v2" width="846" height="222" role="button" title="krzysztof_hoja_1-1725050286028.png" alt="krzysztof_hoja_1-1725050286028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is also possible to use &lt;EM&gt;&lt;STRONG&gt;concat()&lt;/STRONG&gt;&lt;/EM&gt; function together with &lt;STRONG&gt;&lt;EM&gt;classicEntitySelector()&lt;/EM&gt;&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.hypervisor
| fieldsAdd tags
| filter in(id, classicEntitySelector(concat("type(hypervisor), tag(\"SYNCED_AIT:",$Cluster,"\")")))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_2-1725050545883.png" style="width: 856px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22133i9413A703ED8A85CD/image-dimensions/856x229?v=v2" width="856" height="229" role="button" title="krzysztof_hoja_2-1725050545883.png" alt="krzysztof_hoja_2-1725050545883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 20:43:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/A-string-like-quot-ABCDEFG-quot-isn-t-allowed-here-ERROR-when/m-p/254625#M1158</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-08-30T20:43:37Z</dc:date>
    </item>
  </channel>
</rss>

