<?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: Get Data Per Week within a Month in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/get-data-per-week-within-a-month/m-p/1233411#M8526</link>
    <description>&lt;P&gt;config timeframe = 30d&lt;BR /&gt;| dataset = incidents&lt;BR /&gt;| alter week_start = date_floor(creation_time, "w")&lt;BR /&gt;| comp count() as incidents_per_week by week_start&lt;BR /&gt;| sort asc week_start&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here the details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;config timeframe = 30d&lt;/CODE&gt;: This sets the overall search window to the last 30 days.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;dataset = incidents&lt;/CODE&gt;: Specifies that you're querying the incidents dataset.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;| bin creation_time span = 7d as week_interval&lt;/CODE&gt;: This is the core for "per-week". It groups all incidents by their &lt;CODE&gt;creation_time&lt;/CODE&gt; into distinct 7-day bins. The &lt;CODE&gt;as week_interval&lt;/CODE&gt; assigns a readable name to the timestamp representing the start of each 7-day period.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;| aggregate count() as incident_count&lt;/CODE&gt;: After binning, this counts how many incidents fall into each &lt;CODE&gt;week_interval&lt;/CODE&gt; bucket.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;| sort by week_interval asc&lt;/CODE&gt;: (Optional) This just orders your results from the oldest 7-day period to the newest.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2025 08:00:56 GMT</pubDate>
    <dc:creator>Mudhireddy</dc:creator>
    <dc:date>2025-07-07T08:00:56Z</dc:date>
    <item>
      <title>Get Data Per Week within a Month</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/get-data-per-week-within-a-month/m-p/1233406#M8525</link>
      <description>&lt;P&gt;Hello, I would like to ask how to retrieve dat per-week within a month. My current query is like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config timeframe = 30d&lt;BR /&gt;| dataset = incidents &lt;BR /&gt;| bin creation_time span = 7d&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;but i don't think its working&amp;nbsp; properly, could you please help me to fix or improve it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You....&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 07:43:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/get-data-per-week-within-a-month/m-p/1233406#M8525</guid>
      <dc:creator>G.Anshar</dc:creator>
      <dc:date>2025-07-07T07:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get Data Per Week within a Month</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/get-data-per-week-within-a-month/m-p/1233411#M8526</link>
      <description>&lt;P&gt;config timeframe = 30d&lt;BR /&gt;| dataset = incidents&lt;BR /&gt;| alter week_start = date_floor(creation_time, "w")&lt;BR /&gt;| comp count() as incidents_per_week by week_start&lt;BR /&gt;| sort asc week_start&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here the details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;config timeframe = 30d&lt;/CODE&gt;: This sets the overall search window to the last 30 days.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;dataset = incidents&lt;/CODE&gt;: Specifies that you're querying the incidents dataset.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;| bin creation_time span = 7d as week_interval&lt;/CODE&gt;: This is the core for "per-week". It groups all incidents by their &lt;CODE&gt;creation_time&lt;/CODE&gt; into distinct 7-day bins. The &lt;CODE&gt;as week_interval&lt;/CODE&gt; assigns a readable name to the timestamp representing the start of each 7-day period.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;| aggregate count() as incident_count&lt;/CODE&gt;: After binning, this counts how many incidents fall into each &lt;CODE&gt;week_interval&lt;/CODE&gt; bucket.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;| sort by week_interval asc&lt;/CODE&gt;: (Optional) This just orders your results from the oldest 7-day period to the newest.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:00:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/get-data-per-week-within-a-month/m-p/1233411#M8526</guid>
      <dc:creator>Mudhireddy</dc:creator>
      <dc:date>2025-07-07T08:00:56Z</dc:date>
    </item>
  </channel>
</rss>

