<?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: Create a table with max and sum values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605633#M210613</link>
    <description>&lt;P&gt;actually it did work. i had been using 'by Category' on both fields. thanks for the help!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 15:47:54 GMT</pubDate>
    <dc:creator>HelloItsMe76</dc:creator>
    <dc:date>2022-07-14T15:47:54Z</dc:date>
    <item>
      <title>How to create a table with max and sum values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605626#M210608</link>
      <description>&lt;P&gt;I have a table like the below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Category&amp;nbsp; &amp;nbsp;| Time |&amp;nbsp; Count of string&lt;/P&gt;
&lt;P&gt;A | t-5mins | 18&lt;/P&gt;
&lt;P&gt;A | t-10mins | 7&lt;/P&gt;
&lt;P&gt;A | t-15mins | 10&lt;/P&gt;
&lt;P&gt;A | t-20 mins | 1&lt;/P&gt;
&lt;P&gt;B | t-5mins | 6&lt;/P&gt;
&lt;P&gt;B | t-10 mins | 18&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create a table with the latest (max) time and the sum of the count by category so that i get this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Category&amp;nbsp; &amp;nbsp;| Max Time |&amp;nbsp; Sum&lt;/P&gt;
&lt;P&gt;A |&amp;nbsp;t-5mins |&amp;nbsp; 36&lt;/P&gt;
&lt;P&gt;B | T-5mins | 24&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get the max time and the sum individually into a table but am having issues getting them both into 1 table -&amp;nbsp; the time and sum values are coming up blank.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone advise please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605626#M210608</guid>
      <dc:creator>HelloItsMe76</dc:creator>
      <dc:date>2022-07-14T16:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with max and sum values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605628#M210609</link>
      <description>&lt;P&gt;Have you tried something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats max(time) as maxTime sum(count) as sum by Category&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605628#M210609</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-14T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with max and sum values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605631#M210612</link>
      <description>&lt;P&gt;Hey, thanks for the response.&amp;nbsp; yes i have and it returns the correct data for the 2 fields but it doesnt pass in the Category field which i need. How can i get all 3 fields?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605631#M210612</guid>
      <dc:creator>HelloItsMe76</dc:creator>
      <dc:date>2022-07-14T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with max and sum values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605633#M210613</link>
      <description>&lt;P&gt;actually it did work. i had been using 'by Category' on both fields. thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-max-and-sum-values/m-p/605633#M210613</guid>
      <dc:creator>HelloItsMe76</dc:creator>
      <dc:date>2022-07-14T15:47:54Z</dc:date>
    </item>
  </channel>
</rss>

