<?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 can I add an previous date count information column? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-add-an-previous-date-count-information-column/m-p/382692#M68970</link>
    <description>&lt;P&gt;@hoya,&lt;BR /&gt;
Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;=&amp;gt; spl : | stats count("bug_id") as count by date
|reverse|streamstats current=f window=1 last(count) as pre_date_count |reverse
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Feb 2019 05:04:34 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-02-15T05:04:34Z</dc:date>
    <item>
      <title>How can I add an previous date count information column?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-add-an-previous-date-count-information-column/m-p/382691#M68969</link>
      <description>&lt;P&gt;I'd like to see the previous date count together with the current date count on one line. Is there a way?&lt;/P&gt;

&lt;P&gt;The present condition is as follows:&lt;/P&gt;

&lt;H2&gt;=&amp;gt; spl : | stats count("bug_id") as count by date&lt;/H2&gt;

&lt;P&gt;date                    count&lt;BR /&gt;&lt;BR /&gt;
2019-01-31        100&lt;BR /&gt;&lt;BR /&gt;
2019-01-29        75&lt;BR /&gt;&lt;BR /&gt;
2019-01-21        50&lt;/P&gt;

&lt;P&gt;The examples I want are as follows. &lt;BR /&gt;
( add column : pre_date_count)&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;date                    count      pre_date_count&lt;BR /&gt;&lt;BR /&gt;
2019-01-31        100         75&lt;BR /&gt;
2019-01-29        75           50&lt;BR /&gt;
2019-01-21        50&lt;/P&gt;

&lt;P&gt;Thank you for your interest.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-add-an-previous-date-count-information-column/m-p/382691#M68969</guid>
      <dc:creator>hoya</dc:creator>
      <dc:date>2020-09-29T23:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add an previous date count information column?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-add-an-previous-date-count-information-column/m-p/382692#M68970</link>
      <description>&lt;P&gt;@hoya,&lt;BR /&gt;
Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;=&amp;gt; spl : | stats count("bug_id") as count by date
|reverse|streamstats current=f window=1 last(count) as pre_date_count |reverse
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 05:04:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-add-an-previous-date-count-information-column/m-p/382692#M68970</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-02-15T05:04:34Z</dc:date>
    </item>
  </channel>
</rss>

