<?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 Re: DQL interval - Filtering working hours in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290931#M2844</link>
    <description>&lt;P&gt;For example, this is our DQL usecase where we need to apply this kind of filter....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;timeseries count = sum(dt.service.request.count, filter: { ( in(dt.entity.service, classicEntitySelector("type(service),entityName.startsWith(\"service1-")"))) OR ( in(dt.entity.service, classicEntitySelector("type(service),entityName.startsWith(\"service2-")")))
OR ( in(dt.entity.service, classicEntitySelector("type(service),entityName.startsWith(\"service3-")"))) }), by: { dt.entity.service }, interval:1h//, from:"08:00", to:"20:00"
| fieldsAdd entityName(dt.entity.service)
| sort count desc&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 05 Dec 2025 17:37:41 GMT</pubDate>
    <dc:creator>helton_harada</dc:creator>
    <dc:date>2025-12-05T17:37:41Z</dc:date>
    <item>
      <title>DQL interval - Filtering working hours</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290925#M2843</link>
      <description>&lt;P&gt;In DQL, how to filter only working hours in a timeseries? For example: requests count from 8h to 18h (desconsidering 19h to 7h)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 15:48:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290925#M2843</guid>
      <dc:creator>helton_harada</dc:creator>
      <dc:date>2025-12-05T15:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: DQL interval - Filtering working hours</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290931#M2844</link>
      <description>&lt;P&gt;For example, this is our DQL usecase where we need to apply this kind of filter....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;timeseries count = sum(dt.service.request.count, filter: { ( in(dt.entity.service, classicEntitySelector("type(service),entityName.startsWith(\"service1-")"))) OR ( in(dt.entity.service, classicEntitySelector("type(service),entityName.startsWith(\"service2-")")))
OR ( in(dt.entity.service, classicEntitySelector("type(service),entityName.startsWith(\"service3-")"))) }), by: { dt.entity.service }, interval:1h//, from:"08:00", to:"20:00"
| fieldsAdd entityName(dt.entity.service)
| sort count desc&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Dec 2025 17:37:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290931#M2844</guid>
      <dc:creator>helton_harada</dc:creator>
      <dc:date>2025-12-05T17:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: DQL interval - Filtering working hours</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290988#M2849</link>
      <description>&lt;P&gt;A native DQL solution (I changed the filter not to use entity selector):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  requests = sum(dt.service.request.count), timestamp=start()}
  , by:{ dt.entity.service}
  , filter:{ startsWith(entityName(dt.entity.service), "service1") or startsWith(entityName(dt.entity.service), "service2") or startsWith(entityName(dt.entity.service), "service3") }
  , interval:1h
| fieldsAdd dt.entity.service.name = entityName(dt.entity.service)
| fieldsAdd requests=if(getDayOfWeek(timestamp[])&amp;lt;6, requests[])
| fieldsAdd requests=if(getHour(timestamp[],timezone:"Europe/Vienna")&amp;gt;=8, requests[])
| fieldsAdd requests=if(getHour(timestamp[],timezone:"Europe/Vienna")&amp;lt;=18, requests[])
| fieldsRemove timestamp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2025 20:34:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/290988#M2849</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-12-07T20:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: DQL interval - Filtering working hours</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/291019#M2855</link>
      <description>&lt;P&gt;Very Good&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58579"&gt;@JuliusLoman&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works! Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 12:58:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-interval-Filtering-working-hours/m-p/291019#M2855</guid>
      <dc:creator>helton_harada</dc:creator>
      <dc:date>2025-12-08T12:58:56Z</dc:date>
    </item>
  </channel>
</rss>

