<?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 create a new column in my table showing the sum of FieldA by FieldB? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222152#M65315</link>
    <description>&lt;P&gt;Yes, good point. Just forgot to put it. i was recreating version of my bigger search that would be better/easier to explain.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2015 15:23:12 GMT</pubDate>
    <dc:creator>akawacz</dc:creator>
    <dc:date>2015-09-15T15:23:12Z</dc:date>
    <item>
      <title>How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222149#M65312</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;My data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Quarter   Type   Amount
2014q1     a      100
2014q1     b      200
2015q2     a      100
2015q2     b      100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to create an additional column with sum for the same quarter. &lt;/P&gt;

&lt;P&gt;Expected result&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Quarter   Type   Amount  New_column
2014q1     a      100       300
2014q1     b      200       300
2015q2     a      100       200
2015q2     b      100       200
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My current search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test |stats(amount) as amount by quarter type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do not want to use join and append.&lt;/P&gt;

&lt;P&gt;Could you help me?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 12:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222149#M65312</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-09-15T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222150#M65313</link>
      <description>&lt;P&gt;This is not your search; you are missing a function between &lt;CODE&gt;stats&lt;/CODE&gt; and &lt;CODE&gt;(amount)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222150#M65313</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-15T15:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222151#M65314</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search | eventstats sum(amount) as New_column by quarter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222151#M65314</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-15T15:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222152#M65315</link>
      <description>&lt;P&gt;Yes, good point. Just forgot to put it. i was recreating version of my bigger search that would be better/easier to explain.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222152#M65315</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-09-15T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222153#M65316</link>
      <description>&lt;P&gt;OK, so what is it supposed to be?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222153#M65316</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-15T15:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222154#M65317</link>
      <description>&lt;P&gt;should be sum&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222154#M65317</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-09-15T16:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222155#M65318</link>
      <description>&lt;P&gt;That works!! thank you&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222155#M65318</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-09-15T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new column in my table showing the sum of FieldA by FieldB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222156#M65319</link>
      <description>&lt;P&gt;Hi @akawacz,&lt;/P&gt;

&lt;P&gt;Glad @somesoni2 helped you find your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please be sure to accept his answer by clicking "Accept" directly below the answer, otherwise this post will show as unresolved. Thanks!&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 19:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-column-in-my-table-showing-the-sum-of-FieldA/m-p/222156#M65319</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-09-15T19:09:27Z</dc:date>
    </item>
  </channel>
</rss>

