<?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 do i subtract values from the same field and table results by another field in this case Field B in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338100#M100284</link>
    <description>&lt;P&gt;i actually got this working .. i |stats max("FieldA") as MaxAppInstall  min("FieldA") as MinAppInstall range("FieldA") as Difference by FieldB&lt;/P&gt;

&lt;P&gt;Thanks elliotproebstel, i got a clue when you mentioned Max and Min&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 21:07:00 GMT</pubDate>
    <dc:creator>Bentash</dc:creator>
    <dc:date>2018-03-09T21:07:00Z</dc:date>
    <item>
      <title>How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338095#M100279</link>
      <description>&lt;P&gt;How do i subtract values from the same field and table results by another field in this case Field B&lt;/P&gt;

&lt;P&gt;subtract 400 - 200 for value 1&lt;BR /&gt;
and 300 - 200 for value 2&lt;/P&gt;

&lt;P&gt;FieldA          FieldB            FieldC&lt;BR /&gt;
200               value1           may-2-2018&lt;BR /&gt;
300               value2           June-2-2018&lt;BR /&gt;
400               value1           may-2-2018&lt;BR /&gt;
200                value2          Jun2-2-2018&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 18:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338095#M100279</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2018-03-09T18:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338096#M100280</link>
      <description>&lt;P&gt;How are you determining 400-200 for value1 and 300-300 for value2? It looks like max(FieldA) - min(FieldA) for value1, but why 300-300 for value2? If the logic is generalizable, I can help you write the query.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338096#M100280</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338097#M100281</link>
      <description>&lt;P&gt;i correct 300-300 its a type.. and i am determining the results for Value1 and 2 because i want to get the difference between those two result sets since that are coming from different dates &lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338097#M100281</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2018-03-09T20:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338098#M100282</link>
      <description>&lt;P&gt;Great, then I think this should do it for you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search that gets you the table above
| stats max(FieldA) AS max_FieldA min(FieldA) AS min_FieldA BY FieldB FieldC
| eval FieldA=max_FieldA-min_FieldA
| fields FieldA FieldB FieldC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338098#M100282</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T20:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338099#M100283</link>
      <description>&lt;P&gt;i actually got this working .. i |stats max("FieldA") as MaxAppInstall  min("FieldA") as MinAppInstall range("FieldA") as Difference by FieldB&lt;/P&gt;

&lt;P&gt;Thanks elliotproebstel, i got a clue when you mentioned Max and Min&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 21:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338099#M100283</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2018-03-09T21:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338100#M100284</link>
      <description>&lt;P&gt;i actually got this working .. i |stats max("FieldA") as MaxAppInstall  min("FieldA") as MinAppInstall range("FieldA") as Difference by FieldB&lt;/P&gt;

&lt;P&gt;Thanks elliotproebstel, i got a clue when you mentioned Max and Min&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 21:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338100#M100284</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2018-03-09T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338101#M100285</link>
      <description>&lt;P&gt;Glad to help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 21:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338101#M100285</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T21:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do i subtract values from the same field and table results by another field in this case Field B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338102#M100286</link>
      <description>&lt;P&gt;hey Bentash,&lt;/P&gt;

&lt;P&gt;Please accept the answer by elliotproebstel to close the question.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 02:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-subtract-values-from-the-same-field-and-table-results/m-p/338102#M100286</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-03-10T02:21:34Z</dc:date>
    </item>
  </channel>
</rss>

