<?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: =SUM(COUNTIFS(F38:F800,&amp;quot;&amp;lt;&amp;quot;&amp;[@Week],$D38:$D800,&amp;quot;&amp;lt;&amp;gt;Status1&amp;quot;,D38:D800,&amp;quot;&amp;lt;&amp;gt;Status2&amp;quot;,D38:D800,&amp;quot;&amp;lt;&amp;gt;Status3&amp;quot;,D38:D800,&amp;quot;&amp;lt;&amp;gt;Status4&amp;quot;)) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388100#M173034</link>
    <description>&lt;P&gt;Friday of the week&lt;/P&gt;

&lt;P&gt;Saturday to Friday is the week. Which ever created these days then that ticket will come under that week.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 02:51:34 GMT</pubDate>
    <dc:creator>kvr</dc:creator>
    <dc:date>2019-02-15T02:51:34Z</dc:date>
    <item>
      <title>=SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388094#M173028</link>
      <description>&lt;P&gt;Could you please help me to convert above excel formula into query ?? Thanks in advance.&lt;BR /&gt;
Need to filter one date and status then count by the Week.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 07:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388094#M173028</guid>
      <dc:creator>kvr</dc:creator>
      <dc:date>2019-02-14T07:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388095#M173029</link>
      <description>&lt;P&gt;show us your raw events and the desired final output.  Throw the Excel formula in the dumpster.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 07:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388095#M173029</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-14T07:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388096#M173030</link>
      <description>&lt;P&gt;We have to get the status count by week.&lt;BR /&gt;
Week should be  based on Created field.&lt;BR /&gt;
Week needs to be created using Created field.&lt;/P&gt;

&lt;P&gt;Example if Tickets are created on 12,13 or 14th Feb then created week will be 14th Feb.&lt;BR /&gt;
So now we have to get the status(Status1,Status2,Status3..etc) count by Week.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 08:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388096#M173030</guid>
      <dc:creator>kvr</dc:creator>
      <dc:date>2019-02-14T08:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388097#M173031</link>
      <description>&lt;P&gt;I am making the following assumtions:&lt;BR /&gt;
- you have a field "created" which contains a date in the format "YYYY-MM-DD"&lt;BR /&gt;
- you have a field called "status" which has the status values&lt;/P&gt;

&lt;P&gt;If this applies you can search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=$yourindex sourcetype=$yoursourcetype | eval week=strftime(strptime(created,"%Y-%m-%d"),"%W") | chart count by week, status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your creation date has another format, you need to adjust the &lt;CODE&gt;strptime&lt;/CODE&gt; parameters accordingly. If you need further assistance, feel free to comment.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 10:32:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388097#M173031</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2019-02-14T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388098#M173032</link>
      <description>&lt;P&gt;Hi @DMohn &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;

&lt;P&gt;My requirement is&lt;/P&gt;

&lt;P&gt;I have 2 fields, &lt;BR /&gt;
1.Status(Values are Status1,Status2..etc)&lt;BR /&gt;
2.Created(MM/DD/YYYY)&lt;/P&gt;

&lt;P&gt;So here I have to create Week Field(Should use Created Field).If created date is (9,10,11,12,13,14 or 15 then Week will be 15th of Feb i.e Friday).&lt;/P&gt;

&lt;P&gt;Statistics should display like below&lt;/P&gt;

&lt;P&gt;Week    Status1 Status2 Status3 Status4&lt;BR /&gt;
28-Sep  66            10                 51 5&lt;BR /&gt;
5-Oct   67            10                52  5&lt;BR /&gt;
12-Oct  67            10                52  5&lt;BR /&gt;
19-Oct  69             10               54  5&lt;BR /&gt;
26-Oct  69             10               54  5&lt;BR /&gt;
2-Nov   69             10               54  5&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388098#M173032</guid>
      <dc:creator>kvr</dc:creator>
      <dc:date>2019-02-14T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388099#M173033</link>
      <description>&lt;P&gt;Okay, just for clarification - the "Week" field &lt;EM&gt;must&lt;/EM&gt; reflect the Friday of the current week? Or could it be the calendar week number?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388099#M173033</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2019-02-14T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388100#M173034</link>
      <description>&lt;P&gt;Friday of the week&lt;/P&gt;

&lt;P&gt;Saturday to Friday is the week. Which ever created these days then that ticket will come under that week.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 02:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388100#M173034</guid>
      <dc:creator>kvr</dc:creator>
      <dc:date>2019-02-15T02:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: =SUM(COUNTIFS(F38:F800,"&lt;"&amp;[@Week],$D38:$D800,"&lt;&gt;Status1",D38:D800,"&lt;&gt;Status2",D38:D800,"&lt;&gt;Status3",D38:D800,"&lt;&gt;Status4"))</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388101#M173035</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo
| eval _time = relative_time(strptime(Created, "%m/%d/%Y"), "@w5")
| chart count BY _time Status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It becomes very easy to help when you specify your needs the way that we ask you to.  The problem was fairly trivial once you got around to doing that.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 20:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SUM-COUNTIFS-F38-F800-quot-lt-quot-Week-D38-D800-quot-lt-gt/m-p/388101#M173035</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-18T20:22:07Z</dc:date>
    </item>
  </channel>
</rss>

