<?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: How to group daily results by week more close together? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651005#M225081</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257034"&gt;@KalebeRS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;let me understand: you have a chart with data divided by week/day and you want to aggregate data by week, is it correct?&lt;/P&gt;&lt;P&gt;if this is your requirement, you can extract the week number and use it for charting:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="" host= sourcetype=csv [search index="" host= sourcetype=csv source=C:\\CW28_2.csv | dedup source | table source | sort - source | head 1 ] 
| where iswSD &amp;gt;= strftime(relative_time(now(), "-3w@w"),"%Y-%m-%d")
| eval Week_Number=strftime(strptime(iswSD,"%Y-%m-%d"),"%V")
| eval ISWGT=if(iswSD&amp;gt;pverSF, 1,0)
| eval ISWLE=if(iswSD&amp;lt;=pverSF, 1,0)
| eval non_mapped=case(match(pverID, ""), "match")
| chart sum(ISWGT), sum(ISWLE), count(non_mapped) as "Non Mapped" by Week_Number&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 14:08:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-07-18T14:08:30Z</dc:date>
    <item>
      <title>How to group daily results by week more close together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651003#M225080</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have this search for a chart that counts values weekly and divides then by day of the week.&lt;/P&gt;&lt;P&gt;Is there any option that I can do to show this graph a little more compact grouping the results daily in showing just the week like the screenshots examples?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KalebeRS_0-1689688738990.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26329i1686BD66909FCB1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KalebeRS_0-1689688738990.png" alt="KalebeRS_0-1689688738990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 07:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651003#M225080</guid>
      <dc:creator>KalebeRS</dc:creator>
      <dc:date>2023-07-19T07:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to group daily results by week more close together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651005#M225081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257034"&gt;@KalebeRS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;let me understand: you have a chart with data divided by week/day and you want to aggregate data by week, is it correct?&lt;/P&gt;&lt;P&gt;if this is your requirement, you can extract the week number and use it for charting:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="" host= sourcetype=csv [search index="" host= sourcetype=csv source=C:\\CW28_2.csv | dedup source | table source | sort - source | head 1 ] 
| where iswSD &amp;gt;= strftime(relative_time(now(), "-3w@w"),"%Y-%m-%d")
| eval Week_Number=strftime(strptime(iswSD,"%Y-%m-%d"),"%V")
| eval ISWGT=if(iswSD&amp;gt;pverSF, 1,0)
| eval ISWLE=if(iswSD&amp;lt;=pverSF, 1,0)
| eval non_mapped=case(match(pverID, ""), "match")
| chart sum(ISWGT), sum(ISWLE), count(non_mapped) as "Non Mapped" by Week_Number&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651005#M225081</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-18T14:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to group daily results by week more close together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651011#M225083</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Not exactly, I just need to rearenge the values by week day into smaller groups, like in the screenshot. Still showing the values by week dividing by day, but in a compact form.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KalebeRS_0-1689690185875.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26333i465FC12EFB347E94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KalebeRS_0-1689690185875.png" alt="KalebeRS_0-1689690185875.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651011#M225083</guid>
      <dc:creator>KalebeRS</dc:creator>
      <dc:date>2023-07-18T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to group daily results by week more close together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651013#M225084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257034"&gt;@KalebeRS&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's possible if you have only one valye in the chart command,&lt;/P&gt;&lt;P&gt;otherwise, it runs, but it isn't so readable.&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="" host= sourcetype=csv [search index="" host= sourcetype=csv source=C:\\CW28_2.csv | dedup source | table source | sort - source | head 1 ] 
| table iswID, iswTitle, iswSD, pverID, pverSF
| where iswSD &amp;gt;= strftime(relative_time(now(), "-3w@w"),"%Y-%m-%d")
| eval Week_Number=strftime(strptime(iswSD,"%Y-%m-%d"),"%V")
| eval Week_Number_Day=strftime(strptime(iswSD,"%Y-%m-%d"),"%V %A")
| eval ISWGT=if(iswSD&amp;gt;pverSF, 1,0)
| eval ISWLE=if(iswSD&amp;lt;=pverSF, 1,0)
| eval non_mapped=case(match(pverID, ""), "match")
| chart sum(ISWGT), sum(ISWLE), count(non_mapped) as "Non Mapped" OVER  Week_Number_Day BY Week_Number&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-daily-results-by-week-more-close-together/m-p/651013#M225084</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-18T14:28:32Z</dc:date>
    </item>
  </channel>
</rss>

