<?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 Datadog - Calendar-based rollup in Dynatrace (weekly/monthly/yearly with custom start &amp;amp; timezone) in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Datadog-Calendar-based-rollup-in-Dynatrace-weekly-monthly-yearly/m-p/295251#M3170</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;In Datadog dashboards, we can configure rollups like:&lt;/P&gt;
&lt;P&gt;avg weekly UTC starting Sunday&lt;/P&gt;
&lt;P&gt;avg monthly UTC starting &amp;lt;date&amp;gt;&lt;/P&gt;
&lt;P&gt;avg yearly UTC starting &amp;lt;month&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In Dynatrace, I can use every &amp;lt;interval&amp;gt; for fixed rollups, but I don’t see how to configure calendar-aligned rollups with:&lt;/P&gt;
&lt;P&gt;Custom week start (e.g., Sunday)&lt;/P&gt;
&lt;P&gt;Custom month start date&lt;/P&gt;
&lt;P&gt;Custom year start month&lt;/P&gt;
&lt;P&gt;Custom timezone for aggregation&lt;/P&gt;
&lt;P&gt;Is this supported in Dynatrace (dashboard, DQL, or calculated metrics)? If yes, how can we achieve this?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2026 07:30:31 GMT</pubDate>
    <dc:creator>anuj08_jain</dc:creator>
    <dc:date>2026-02-25T07:30:31Z</dc:date>
    <item>
      <title>Datadog - Calendar-based rollup in Dynatrace (weekly/monthly/yearly with custom start &amp; timezone)</title>
      <link>https://community.dynatrace.com/t5/DQL/Datadog-Calendar-based-rollup-in-Dynatrace-weekly-monthly-yearly/m-p/295251#M3170</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;In Datadog dashboards, we can configure rollups like:&lt;/P&gt;
&lt;P&gt;avg weekly UTC starting Sunday&lt;/P&gt;
&lt;P&gt;avg monthly UTC starting &amp;lt;date&amp;gt;&lt;/P&gt;
&lt;P&gt;avg yearly UTC starting &amp;lt;month&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In Dynatrace, I can use every &amp;lt;interval&amp;gt; for fixed rollups, but I don’t see how to configure calendar-aligned rollups with:&lt;/P&gt;
&lt;P&gt;Custom week start (e.g., Sunday)&lt;/P&gt;
&lt;P&gt;Custom month start date&lt;/P&gt;
&lt;P&gt;Custom year start month&lt;/P&gt;
&lt;P&gt;Custom timezone for aggregation&lt;/P&gt;
&lt;P&gt;Is this supported in Dynatrace (dashboard, DQL, or calculated metrics)? If yes, how can we achieve this?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 07:30:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Datadog-Calendar-based-rollup-in-Dynatrace-weekly-monthly-yearly/m-p/295251#M3170</guid>
      <dc:creator>anuj08_jain</dc:creator>
      <dc:date>2026-02-25T07:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Datadog - Calendar-based rollup in Dynatrace (weekly/monthly/yearly with custom start &amp; timezone)</title>
      <link>https://community.dynatrace.com/t5/DQL/Datadog-Calendar-based-rollup-in-Dynatrace-weekly-monthly-yearly/m-p/295282#M3173</link>
      <description>&lt;P&gt;I inderstand that you are talking about metrics, so data retirvable usig &lt;EM&gt;&lt;STRONG&gt;timeseries&lt;/STRONG&gt;&lt;/EM&gt; command. Indeed, it allows only retrieval of data in uniform intervals, not related to calendar is defines units of different length and flexible starting point.&lt;BR /&gt;&lt;BR /&gt;What DQL can offer to acheive this, if further aggregation of data returned but timeseries command. Of course it cannot be done using &lt;EM&gt;&lt;STRONG&gt;makeTimeseries&lt;/STRONG&gt;&lt;/EM&gt;, because it also operates on fixed size intervals, but &lt;EM&gt;&lt;STRONG&gt;summarize&lt;/STRONG&gt;&lt;/EM&gt; does not have this limitation and the output is accepted by out visualizations in notebooks and dashboards.&lt;BR /&gt;&lt;BR /&gt;To get the data ready for further aggregation we need to do this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {d=sum(dt.service.request.count), t=start()}, from: (-1y)@y, to: @y, interval:24h
| fieldsAdd d = record(d=d[], t=t[])
| expand d&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way we have metric value in separate rows as single record holding value with timestamp (beginning of interval). Size of interval needs to be selected accordingly. In my example I want to have data for full year, so I selected 24h intervals to have less intervals then limit allows (1.5k)&lt;BR /&gt;&lt;BR /&gt;Now we can aggregate as you wish. To get weekle bins starting on Wendnesdays:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| summarize d=sum(d[d]), by: { t =  timeframe(from: (d[t]+interval/2)@w3, to: (d[t]+interval/2)@w3+1w ) }&lt;/LI-CODE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;To get monthly bins:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| summarize d=sum(d[d]), by: { t =  timeframe(from: (d[t]+interval/2)@M, to: (d[t]+interval/2)@M+1M ) }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get monthly bins, but when month starts from 10th day&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| summarize d=sum(d[d]), by: { t =  timeframe(from: (d[t]+interval/2)@M+9d, to: (d[t]+interval/2)@M+1M+9d ) }&lt;/LI-CODE&gt;&lt;P&gt;Unfortunately this method is not perfect. Due to dalight saving time part of the year is not midnight-to-midnigth, so some moths give one of theit hour to neighboring month and take one hour from month on other side.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Custom timezone can be achived using bin() function where you can set offset (now I am getting past month in hourly resolution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {d=sum(dt.service.request.count), t=start()}, from: @M-1M, to: @M, interval:1h
| fieldsAdd d = record(d=d[], t=t[])
| expand d
| summarize d=sum(d[d]), by: { t =  timeframe(from: bin(d[t], 24h, at:2h), to: bin(d[t], 24h, at:2h)+24h) }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Also this methos will ignore DST changes.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 14:59:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Datadog-Calendar-based-rollup-in-Dynatrace-weekly-monthly-yearly/m-p/295282#M3173</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2026-02-25T14:59:12Z</dc:date>
    </item>
  </channel>
</rss>

