<?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 Dashboards with filtering data using variables in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Dashboards-with-filtering-data-using-variables/m-p/276493#M5003</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dashboard with variable captured from bizevents data. It is a numeric value (type long). I want to filter bizevents for values choosen in the variable list. Single value works fine because it is enough to use "| filter positionDepot == toLong($positionDepot)". In the multiselect in my opinion I should use "| filter in(positionDepot, array($positionDepot)"&lt;/P&gt;
&lt;P&gt;But it doesn't work. I mean there is no error but tile says "The are no records"&lt;/P&gt;
&lt;P&gt;The workaround for it is:&lt;/P&gt;
&lt;P&gt;Variable definition:&lt;/P&gt;
&lt;P&gt;fetch bizevents&lt;BR /&gt;| filter event.provider == "XXXXX"&lt;BR /&gt;| fields positionDepot = toString(positionDepot)&lt;BR /&gt;| summarize positionDepot = collectDistinct(positionDepot)&lt;/P&gt;
&lt;P&gt;Tile DQL query:&lt;/P&gt;
&lt;P&gt;fetch bizevents&lt;BR /&gt;| filter event.provider == "XXXXX&lt;BR /&gt;| filter in(toString(positionDepot), array($positionDepot))&lt;BR /&gt;| fields timestamp, positionDepot&lt;/P&gt;
&lt;P&gt;In this setup everything works fine but in my opinion it can be done in a proper way.&lt;/P&gt;
&lt;P&gt;Any ideas how to do it?&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Patryk&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 06:27:54 GMT</pubDate>
    <dc:creator>patryk_ozimek2</dc:creator>
    <dc:date>2025-05-13T06:27:54Z</dc:date>
    <item>
      <title>Dashboards with filtering data using variables</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Dashboards-with-filtering-data-using-variables/m-p/276493#M5003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dashboard with variable captured from bizevents data. It is a numeric value (type long). I want to filter bizevents for values choosen in the variable list. Single value works fine because it is enough to use "| filter positionDepot == toLong($positionDepot)". In the multiselect in my opinion I should use "| filter in(positionDepot, array($positionDepot)"&lt;/P&gt;
&lt;P&gt;But it doesn't work. I mean there is no error but tile says "The are no records"&lt;/P&gt;
&lt;P&gt;The workaround for it is:&lt;/P&gt;
&lt;P&gt;Variable definition:&lt;/P&gt;
&lt;P&gt;fetch bizevents&lt;BR /&gt;| filter event.provider == "XXXXX"&lt;BR /&gt;| fields positionDepot = toString(positionDepot)&lt;BR /&gt;| summarize positionDepot = collectDistinct(positionDepot)&lt;/P&gt;
&lt;P&gt;Tile DQL query:&lt;/P&gt;
&lt;P&gt;fetch bizevents&lt;BR /&gt;| filter event.provider == "XXXXX&lt;BR /&gt;| filter in(toString(positionDepot), array($positionDepot))&lt;BR /&gt;| fields timestamp, positionDepot&lt;/P&gt;
&lt;P&gt;In this setup everything works fine but in my opinion it can be done in a proper way.&lt;/P&gt;
&lt;P&gt;Any ideas how to do it?&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Patryk&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 06:27:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Dashboards-with-filtering-data-using-variables/m-p/276493#M5003</guid>
      <dc:creator>patryk_ozimek2</dc:creator>
      <dc:date>2025-05-13T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboards - filtering data using variables</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Dashboards-with-filtering-data-using-variables/m-p/276519#M5009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will provide and example to filter a table by hostname.&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| fieldsKeep entity.name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;DQL query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| filter in(entity.name, array($HOSTNAME))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Important is variable only return values about one dimension. I am using "fieldsKeep" to have just values in one field.&lt;/P&gt;&lt;P&gt;I would use something as that, instead of summarize + &lt;SPAN&gt;collectDistinct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 07:57:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Dashboards-with-filtering-data-using-variables/m-p/276519#M5009</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-05-06T07:57:45Z</dc:date>
    </item>
  </channel>
</rss>

