<?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 add a column that sums values while keeping the values column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-column-that-sums-values-while-keeping-the-values/m-p/596511#M207664</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244559"&gt;@Newser703&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try eventstats&amp;nbsp; it should give you the output you are looking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults |eval Name="Name1",Type="TypeA",Value=2&lt;BR /&gt;|append[|makeresults |eval Name="Name1",Type="TypeB",Value=4]&lt;BR /&gt;|append[|makeresults |eval Name="Name1",Type="TypeC",Value=6]&lt;BR /&gt;|append[|makeresults |eval Name="Name2",Type="TypeA",Value=4]&lt;BR /&gt;|append[|makeresults |eval Name="Name2",Type="TypeB",Value=8]&lt;BR /&gt;|append[|makeresults |eval Name="Name2",Type="TypeC",Value=3]&lt;BR /&gt;|append[|makeresults |eval Name="Name3",Type="TypeA",Value=1]&lt;BR /&gt;|append[|makeresults |eval Name="Name3",Type="TypeB",Value=5]&lt;BR /&gt;|append[|makeresults |eval Name="Name3",Type="TypeC",Value=7]&lt;BR /&gt;|eventstats sum(Value) AS SumbyName by Name |fields - _time&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="venky1544_0-1651756463723.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19444i2DE77623D037843E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="venky1544_0-1651756463723.png" alt="venky1544_0-1651756463723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps karma is appreciated/if it resolves acceptance as solution is appreciated&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 13:14:36 GMT</pubDate>
    <dc:creator>venky1544</dc:creator>
    <dc:date>2022-05-05T13:14:36Z</dc:date>
    <item>
      <title>How to add a column that sums values while keeping the values column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-column-that-sums-values-while-keeping-the-values/m-p/596507#M207662</link>
      <description>&lt;P&gt;Hello I have data that looks like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name	|	Type	|	Value
------------------------------------------
Name1	|	TypeA	|	2
Name1	|	TypeB	|	4
Name1	|	TypeC	|	6
Name2	|	TypeA	|	4
Name2	|	TypeB	|	8
Name2	|	TypeC	|	3
Name3	|	TypeA	|	1
Name3	|	TypeB	|	5
Name3	|	TypeC	|	7&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is it possible to add a column that sums the values by Name while keeping the Value column, like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name	|	Type	|	Value	|	SumByName
---------------------------------------------------------
Name1	|	TypeA	|	2	|	12
Name1	|	TypeB	|	4	|	12
Name1	|	TypeC	|	6	|	12
Name2	|	TypeA	|	4	|	15
Name2	|	TypeB	|	8	|	15
Name2	|	TypeC	|	3	|	15
Name3	|	TypeA	|	1	|	13
Name3	|	TypeB	|	5	|	13
Name3	|	TypeC	|	7	|	13&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 12:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-column-that-sums-values-while-keeping-the-values/m-p/596507#M207662</guid>
      <dc:creator>Newser703</dc:creator>
      <dc:date>2022-05-05T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a column that sums values while keeping the values column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-column-that-sums-values-while-keeping-the-values/m-p/596511#M207664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244559"&gt;@Newser703&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try eventstats&amp;nbsp; it should give you the output you are looking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults |eval Name="Name1",Type="TypeA",Value=2&lt;BR /&gt;|append[|makeresults |eval Name="Name1",Type="TypeB",Value=4]&lt;BR /&gt;|append[|makeresults |eval Name="Name1",Type="TypeC",Value=6]&lt;BR /&gt;|append[|makeresults |eval Name="Name2",Type="TypeA",Value=4]&lt;BR /&gt;|append[|makeresults |eval Name="Name2",Type="TypeB",Value=8]&lt;BR /&gt;|append[|makeresults |eval Name="Name2",Type="TypeC",Value=3]&lt;BR /&gt;|append[|makeresults |eval Name="Name3",Type="TypeA",Value=1]&lt;BR /&gt;|append[|makeresults |eval Name="Name3",Type="TypeB",Value=5]&lt;BR /&gt;|append[|makeresults |eval Name="Name3",Type="TypeC",Value=7]&lt;BR /&gt;|eventstats sum(Value) AS SumbyName by Name |fields - _time&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="venky1544_0-1651756463723.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19444i2DE77623D037843E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="venky1544_0-1651756463723.png" alt="venky1544_0-1651756463723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps karma is appreciated/if it resolves acceptance as solution is appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-column-that-sums-values-while-keeping-the-values/m-p/596511#M207664</guid>
      <dc:creator>venky1544</dc:creator>
      <dc:date>2022-05-05T13:14:36Z</dc:date>
    </item>
  </channel>
</rss>

