<?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: Splitting Results by Calendar Day, Week, or Month? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Splitting-Results-by-Calendar-Day-Week-or-Month/m-p/221469#M229</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47129"&gt;@jegron&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes this is possible.&lt;/P&gt;&lt;P&gt;Can you use the new functions&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#getDayOfWeek" target="_self"&gt;getDayOfWeek&lt;/A&gt;, &lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#getWeekOfYear" target="_self"&gt;getWeekOfYear&lt;/A&gt;, etc., to convert a timestamp field. See following example query:&lt;/P&gt;&lt;PRE&gt;fetch events&lt;BR /&gt;| fieldsAdd dayOfWeek = getDayOfWeek(timestamp)&lt;BR /&gt;| summarize count(), by:{dayOfWeek}&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#formatTimestamp" target="_self"&gt;formatTimestamp&lt;/A&gt;&amp;nbsp;is a more generic alternative. You can format a timestamp to your needs based on a pattern (see the link in the doc for different patterns):&lt;/P&gt;&lt;PRE&gt;fetch events&lt;BR /&gt;| fieldsAdd dayOfWeek = formatTimestamp(timestamp, format: "E")&lt;BR /&gt;| summarize count(), by:{dayOfWeek}&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_0-1692858705879.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13777iFF9DD8E87FFCB184/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_0-1692858705879.png" alt="stefan_eggersto_0-1692858705879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 06:33:54 GMT</pubDate>
    <dc:creator>stefan_eggersto</dc:creator>
    <dc:date>2023-08-24T06:33:54Z</dc:date>
    <item>
      <title>Splitting Results by Calendar Day, Week, or Month?</title>
      <link>https://community.dynatrace.com/t5/DQL/Splitting-Results-by-Calendar-Day-Week-or-Month/m-p/221464#M228</link>
      <description>&lt;P&gt;Hello Dynatrace Community,&lt;/P&gt;&lt;P&gt;I've been working on some DQL queries recently and I'm trying to figure out if it's possible to split the results by calendar intervals such as a day, week, or month. I've noticed the &lt;STRONG&gt;bin&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;interval&lt;/STRONG&gt; parameter allows for relative intervals, but I'm looking for an absolute interval based on the calendar.&lt;/P&gt;&lt;P&gt;Has anyone encountered this before or knows how to achieve this?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:17:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Splitting-Results-by-Calendar-Day-Week-or-Month/m-p/221464#M228</guid>
      <dc:creator>jegron</dc:creator>
      <dc:date>2023-08-24T06:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Results by Calendar Day, Week, or Month?</title>
      <link>https://community.dynatrace.com/t5/DQL/Splitting-Results-by-Calendar-Day-Week-or-Month/m-p/221469#M229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47129"&gt;@jegron&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes this is possible.&lt;/P&gt;&lt;P&gt;Can you use the new functions&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#getDayOfWeek" target="_self"&gt;getDayOfWeek&lt;/A&gt;, &lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#getWeekOfYear" target="_self"&gt;getWeekOfYear&lt;/A&gt;, etc., to convert a timestamp field. See following example query:&lt;/P&gt;&lt;PRE&gt;fetch events&lt;BR /&gt;| fieldsAdd dayOfWeek = getDayOfWeek(timestamp)&lt;BR /&gt;| summarize count(), by:{dayOfWeek}&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#formatTimestamp" target="_self"&gt;formatTimestamp&lt;/A&gt;&amp;nbsp;is a more generic alternative. You can format a timestamp to your needs based on a pattern (see the link in the doc for different patterns):&lt;/P&gt;&lt;PRE&gt;fetch events&lt;BR /&gt;| fieldsAdd dayOfWeek = formatTimestamp(timestamp, format: "E")&lt;BR /&gt;| summarize count(), by:{dayOfWeek}&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_0-1692858705879.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13777iFF9DD8E87FFCB184/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_0-1692858705879.png" alt="stefan_eggersto_0-1692858705879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:33:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Splitting-Results-by-Calendar-Day-Week-or-Month/m-p/221469#M229</guid>
      <dc:creator>stefan_eggersto</dc:creator>
      <dc:date>2023-08-24T06:33:54Z</dc:date>
    </item>
  </channel>
</rss>

