<?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 table that has values summed up by the column? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375064#M110208</link>
    <description>&lt;P&gt;Yes, I get it; that is what my solution does.  Did you not try it?  I went back and modified my answer to prove that it works with sample data.&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 16:39:02 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2018-05-03T16:39:02Z</dc:date>
    <item>
      <title>How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375058#M110202</link>
      <description>&lt;P&gt;I would like to manipulate it to look like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4884iAC67C0824AC32C5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375058#M110202</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2018-05-03T15:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375059#M110203</link>
      <description>&lt;P&gt;Hi @Hppjet, &lt;/P&gt;

&lt;P&gt;Have you tried &lt;CODE&gt;addcoltotals&lt;/CODE&gt; ??&lt;/P&gt;

&lt;P&gt;Can you please try my sample search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" sourcetype=* date_minute=* 
| chart count over sourcetype by date_minute 
| addcoltotals 
| fillnull value="Grand Total" sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have added &lt;CODE&gt;fillnull&lt;/CODE&gt; for displaying "Grand Total" value at the last.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375059#M110203</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-05-03T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375060#M110204</link>
      <description>&lt;P&gt;I can't believe I actually transcribed your dataset (please post text, not graphics next time):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval raw="A10 1 1090:
A10 2 1429:
A10 3 1527.66667:
A10 4 1611.46154:
A10 5 1023:
A102 1 1928.06667:
A102 2 1564.26923:
A102 3 2668.7:
A102 4 1730.33333:
A102 5 1801.75:
A103 1 1687.26316:
A103 2 1903.45833:
A103 3 1784.84615:
A103 4 1358.93333:
A103 5 1818.5:
A104 1 2476.2:
A104 2 2184.26316:
A104 3 2272.86667:
A104 4 1742.55:
A104 5 2571:
A107 1 2294.07692"
| makemv delim=":" raw
| mvexpand raw
| rex field=raw "(?&amp;lt;operator&amp;gt;\S+)\s+(?&amp;lt;Month&amp;gt;\S+)\s+(?&amp;lt;Count&amp;gt;\S+)"
| table operator Month Count

| rename COMMENT AS "Everything above generates sample event data; everything below is your solution"

| chart sum(Count) BY operator Month
| addtotals row=f col=t
| fillnull operator value="Grand Total"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 16:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375060#M110204</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-05-03T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375061#M110205</link>
      <description>&lt;P&gt;I need to take the values in the second column and turn those into columns which will sum the values based on what is in the first column.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 16:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375061#M110205</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2018-05-03T16:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375062#M110206</link>
      <description>&lt;P&gt;I need to take the values in the second column and turn those into columns which will sum the values based on what is in the first column.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 16:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375062#M110206</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2018-05-03T16:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375063#M110207</link>
      <description>&lt;P&gt;If you're looking to go from the first chart above (three columns: &lt;CODE&gt;operator&lt;/CODE&gt;, &lt;CODE&gt;Month&lt;/CODE&gt;, and &lt;CODE&gt;Count&lt;/CODE&gt;) to the second chart, then you should be able to append this to your current search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| xyseries operator Month Count 
| addcoltotals label="Grand Total" labelfield="operator"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 16:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375063#M110207</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-05-03T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375064#M110208</link>
      <description>&lt;P&gt;Yes, I get it; that is what my solution does.  Did you not try it?  I went back and modified my answer to prove that it works with sample data.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 16:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375064#M110208</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-05-03T16:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that has values summed up by the column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375065#M110209</link>
      <description>&lt;P&gt;It worked! &lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 16:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-has-values-summed-up-by-the-column/m-p/375065#M110209</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2018-05-03T16:45:27Z</dc:date>
    </item>
  </channel>
</rss>

