<?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 Display data in calendar weeks in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Display-data-in-calendar-weeks/m-p/213665#M6</link>
    <description>&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;How can I aggregate my data into calendar weeks? This is a simplified version of my query:&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-files_container" role="none"&gt;
&lt;PRE class="c-message_kit__file__meta"&gt;fetch events&lt;BR /&gt;| summarize count(), by:{bin(timestamp, 7d)}&lt;/PRE&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;This chart shows the beginning of the weeks in the legend, but I'd like to display calendar weeks:&lt;/DIV&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_0-1685541291634.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11991iC2D418B61FACE768/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_0-1685541291634.png" alt="stefan_eggersto_0-1685541291634.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 May 2023 13:55:55 GMT</pubDate>
    <dc:creator>stefan_eggersto</dc:creator>
    <dc:date>2023-05-31T13:55:55Z</dc:date>
    <item>
      <title>Display data in calendar weeks</title>
      <link>https://community.dynatrace.com/t5/DQL/Display-data-in-calendar-weeks/m-p/213665#M6</link>
      <description>&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;How can I aggregate my data into calendar weeks? This is a simplified version of my query:&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-files_container" role="none"&gt;
&lt;PRE class="c-message_kit__file__meta"&gt;fetch events&lt;BR /&gt;| summarize count(), by:{bin(timestamp, 7d)}&lt;/PRE&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;This chart shows the beginning of the weeks in the legend, but I'd like to display calendar weeks:&lt;/DIV&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_0-1685541291634.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11991iC2D418B61FACE768/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_0-1685541291634.png" alt="stefan_eggersto_0-1685541291634.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 May 2023 13:55:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Display-data-in-calendar-weeks/m-p/213665#M6</guid>
      <dc:creator>stefan_eggersto</dc:creator>
      <dc:date>2023-05-31T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display data in calendar weeks</title>
      <link>https://community.dynatrace.com/t5/DQL/Display-data-in-calendar-weeks/m-p/213756#M21</link>
      <description>&lt;P&gt;Hi Stefan, you can achieve this with the &lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#formatTimestamp" target="_self"&gt;formatTimestamp function&lt;/A&gt;, like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch events
| fieldsAdd week = formatTimestamp(timestamp, format: "w yyyy")
| summarize count(), by:{week}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 11:07:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Display-data-in-calendar-weeks/m-p/213756#M21</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-06-01T11:07:37Z</dc:date>
    </item>
  </channel>
</rss>

