<?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 use a running total/accumulated value as a starting input for a timechart, but not display this data point? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202900#M58909</link>
    <description>&lt;P&gt;How are you going to specify N? To suppress the first N rows, you can do &lt;CODE&gt;reverse | head N | reverse&lt;/CODE&gt; where &lt;CODE&gt;N=Total-N&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 19:51:49 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-08-02T19:51:49Z</dc:date>
    <item>
      <title>How to use a running total/accumulated value as a starting input for a timechart, but not display this data point?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202898#M58907</link>
      <description>&lt;P&gt;I have a reqquirement as follows:&lt;BR /&gt;
I have a time chart with 3 fields&lt;BR /&gt;
A,B,C&lt;/P&gt;

&lt;P&gt;C=A-B+previous value of C in row immediately above.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1st Row              A     B    C
                     8     3    5
2nd row and so on    A     B    C
                     6     7    4(6-7+5)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, I have built the time chart using accum C, defining eval C=A-B...which woks perfectly, question is -  this is continuous data from 3 years back. For example, if I am asked to show a timechart / time wise depiction for say last 3 weeks - till now.... the chart breaks down, as the accumulation for the first row 3 weeks ago just takes A-B, whereas it should take the accumulated value of C from the immediate row above. However, since the chart is now being pulled from 3 weeks ago, it does not find any accumulated value of for the 1st row for 3 week old data pull.&lt;/P&gt;

&lt;P&gt;In other words - is there a way to limit timechart to just visually start from any point in the past BUT somehow use the running total/accumulated value as a starting input while limiting the time chart?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 17:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202898#M58907</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2016-08-02T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a running total/accumulated value as a starting input for a timechart, but not display this data point?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202899#M58908</link>
      <description>&lt;P&gt;Hi gals n guys - Sorry please disregard this , i found out what I wanted.&lt;/P&gt;

&lt;P&gt;Took the total index query at first, placed join on _time with the later , later being selected for last 3 weeks.&lt;BR /&gt;
_time columns join worked of course and the values from the first join for the common (last 3 weeks) flowed into the common join table. Just did some last clean up with fields - and removed a couple of columns from the second join that I did no need.&lt;/P&gt;

&lt;P&gt;But makes me wonder is there a way to suppress first N rows returned from a timechart without condition by just specifying N - number of rows needed to be removed..could be 1 could be 5/6 etc. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 18:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202899#M58908</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2016-08-02T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a running total/accumulated value as a starting input for a timechart, but not display this data point?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202900#M58909</link>
      <description>&lt;P&gt;How are you going to specify N? To suppress the first N rows, you can do &lt;CODE&gt;reverse | head N | reverse&lt;/CODE&gt; where &lt;CODE&gt;N=Total-N&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 19:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202900#M58909</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-02T19:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a running total/accumulated value as a starting input for a timechart, but not display this data point?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202901#M58910</link>
      <description>&lt;P&gt;This works well..N is passed from a filter where user enters the past number of weeks he/she wants to see the results from..thanks a lot! answer accepted, query looks much smaller and trimmer by your solution.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202901#M58910</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2016-08-03T21:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a running total/accumulated value as a starting input for a timechart, but not display this data point?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202902#M58911</link>
      <description>&lt;P&gt;what is the more efficient way, though? both the solutions work but in the long run which will put less load on the search?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202902#M58911</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2016-08-03T21:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a running total/accumulated value as a starting input for a timechart, but not display this data point?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202903#M58912</link>
      <description>&lt;P&gt;what is the more efficient way, though? both the solutions work but in the long run which will put less load on the search?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-running-total-accumulated-value-as-a-starting-input/m-p/202903#M58912</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2016-08-04T06:17:26Z</dc:date>
    </item>
  </channel>
</rss>

