<?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: Calculate Difference Between Same Field in Different Rows in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Calculate-Difference-Between-Same-Field-in-Different-Rows/m-p/680450#M12392</link>
    <description>&lt;P&gt;Assuming these are numeric (not strings), you can use streamstats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats window=2 range(USAGE) as difference&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 12 Mar 2024 23:05:16 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-12T23:05:16Z</dc:date>
    <item>
      <title>Calculate Difference Between Same Field in Different Rows</title>
      <link>https://community.splunk.com/t5/Reporting/Calculate-Difference-Between-Same-Field-in-Different-Rows/m-p/680426#M12391</link>
      <description>&lt;P&gt;If I have the following table using columns DATE and USAGE, is there a way to create a 3rd column to display the difference in the USAGE column from Day X to previous day?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE USAGE&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;Feb-28&lt;/DIV&gt;&lt;DIV class=""&gt;Feb-29&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-01&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-02&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-03&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-04&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-05&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-06&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-07&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-08&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-09&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-10&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-11&lt;/DIV&gt;&lt;DIV class=""&gt;Mar-12&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;17.68 gb&lt;/DIV&gt;&lt;DIV class=""&gt;18.53 gb&lt;/DIV&gt;&lt;DIV class=""&gt;19.66 gb&lt;/DIV&gt;&lt;DIV class=""&gt;21.09 gb&lt;/DIV&gt;&lt;DIV class=""&gt;22.04 gb&lt;/DIV&gt;&lt;DIV class=""&gt;23.21 gb&lt;/DIV&gt;&lt;DIV class=""&gt;24.20 gb&lt;/DIV&gt;&lt;DIV class=""&gt;24.94 gb&lt;/DIV&gt;&lt;DIV class=""&gt;25.64 gb&lt;/DIV&gt;&lt;DIV class=""&gt;26.80 gb&lt;/DIV&gt;&lt;DIV class=""&gt;27.79 gb&lt;/DIV&gt;&lt;DIV class=""&gt;29.07 gb&lt;/DIV&gt;&lt;DIV class=""&gt;30.09 gb&lt;/DIV&gt;&lt;DIV class=""&gt;31.01 gb&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Calculate-Difference-Between-Same-Field-in-Different-Rows/m-p/680426#M12391</guid>
      <dc:creator>he204035</dc:creator>
      <dc:date>2024-03-12T18:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference Between Same Field in Different Rows</title>
      <link>https://community.splunk.com/t5/Reporting/Calculate-Difference-Between-Same-Field-in-Different-Rows/m-p/680450#M12392</link>
      <description>&lt;P&gt;Assuming these are numeric (not strings), you can use streamstats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats window=2 range(USAGE) as difference&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Mar 2024 23:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Calculate-Difference-Between-Same-Field-in-Different-Rows/m-p/680450#M12392</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-12T23:05:16Z</dc:date>
    </item>
  </channel>
</rss>

