<?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 How do I return values which have returned 1? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-do-I-return-values-which-have-returned-1/m-p/293382#M3061</link>
    <description>&lt;P&gt;I have the following DQL code below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries interval: 10m, file_count = avg(filesystem.file_count, filter: { ( in(`dt.entity.filesystem:path`, classicEntitySelector("type(filesystem:path),entityName.equals(\"/link/link1/link2/test.csv\")"))) OR ( in(`dt.entity.filesystem:path`, classicEntitySelector("type(filesystem:path),entityName.equals(\"/link3/link4/test.1\")"))) }), by: { `dt.entity.filesystem:path` }
| fieldsAdd entityName(`dt.entity.filesystem:path`)
| sort arrayAvg(file_count) desc
| filter arrayIndexOf(array(file_count), 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the line chart for the last 24 hours, this will display a line chart where it is mostly 0 and then around 18:00, jump up as the value has changed to 1 until 19:00.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using arrayIndexOf to filter to just 1, but it doesn't appear to work. Any ideas? How do I filter values or set a threshold to values which only appear as 1?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2026 12:31:43 GMT</pubDate>
    <dc:creator>badgerfifteen</dc:creator>
    <dc:date>2026-01-21T12:31:43Z</dc:date>
    <item>
      <title>How do I return values which have returned 1?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-do-I-return-values-which-have-returned-1/m-p/293382#M3061</link>
      <description>&lt;P&gt;I have the following DQL code below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries interval: 10m, file_count = avg(filesystem.file_count, filter: { ( in(`dt.entity.filesystem:path`, classicEntitySelector("type(filesystem:path),entityName.equals(\"/link/link1/link2/test.csv\")"))) OR ( in(`dt.entity.filesystem:path`, classicEntitySelector("type(filesystem:path),entityName.equals(\"/link3/link4/test.1\")"))) }), by: { `dt.entity.filesystem:path` }
| fieldsAdd entityName(`dt.entity.filesystem:path`)
| sort arrayAvg(file_count) desc
| filter arrayIndexOf(array(file_count), 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the line chart for the last 24 hours, this will display a line chart where it is mostly 0 and then around 18:00, jump up as the value has changed to 1 until 19:00.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using arrayIndexOf to filter to just 1, but it doesn't appear to work. Any ideas? How do I filter values or set a threshold to values which only appear as 1?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 12:31:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-do-I-return-values-which-have-returned-1/m-p/293382#M3061</guid>
      <dc:creator>badgerfifteen</dc:creator>
      <dc:date>2026-01-21T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return values which have returned 1?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-do-I-return-values-which-have-returned-1/m-p/293385#M3062</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After timeseries, file_count is an array (time series), not a single value.&lt;BR /&gt;So arrayIndexOf() won’t work as expected.&lt;/P&gt;&lt;P&gt;Use iAny() to filter series that ever had value 1, and [] to work on points.&lt;BR /&gt;try change filters To keep only series that ever reached 1:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| filter iAny(file_count[] == 1)&lt;/LI-CODE&gt;&lt;P&gt;To display only points where the value is 1&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fieldsAdd file_count = if(file_count[] == 1, file_count[], else: null)&lt;/LI-CODE&gt;&lt;P&gt;try this example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| filter iAny(file_count[] &amp;gt;= 1)
| fieldsAdd file_count = if(file_count[] &amp;gt;= 1, file_count[], else: null)&lt;/LI-CODE&gt;&lt;P&gt;it should keeps only series that hit the value 1&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 13:18:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-do-I-return-values-which-have-returned-1/m-p/293385#M3062</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2026-01-21T13:18:54Z</dc:date>
    </item>
  </channel>
</rss>

