<?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 aggregate across columns? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210110#M61456</link>
    <description>&lt;P&gt;I think you'll need two separate searches. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats sum(price)  as revenue by buyId

...|stats sum(price) as revenue by userId|sort 0 - revenue |head 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Dec 2016 13:16:57 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2016-12-29T13:16:57Z</dc:date>
    <item>
      <title>How to aggregate across columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210109#M61455</link>
      <description>&lt;P&gt;So I currently have a csv table of users and click events related to purchases on an app. The table goes something like this:&lt;/P&gt;

&lt;P&gt;userId  |  timestamp                      |  uxID  |  buyId  |  price&lt;BR /&gt;
1004        5/26/2016  3:36:54 PM     6004          2              5&lt;BR /&gt;
1300        5/26/2016  5:06:54 PM     6005          1             10&lt;BR /&gt;
1027        5/26/2016  6:06:54 PM     6006          3              3&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;The buyId is the number of the specific item that users can purchase and there are six items available in total. The price for the different items vary as well. What I want to know is:&lt;/P&gt;

&lt;P&gt;1) how much money was spent in total for each item?&lt;BR /&gt;
2) the total amount of money spent by the top ten users (ranked by how much money they spent&lt;/P&gt;

&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 09:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210109#M61455</guid>
      <dc:creator>cheung_bea</dc:creator>
      <dc:date>2016-12-29T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate across columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210110#M61456</link>
      <description>&lt;P&gt;I think you'll need two separate searches. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats sum(price)  as revenue by buyId

...|stats sum(price) as revenue by userId|sort 0 - revenue |head 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2016 13:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210110#M61456</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-12-29T13:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate across columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210111#M61457</link>
      <description>&lt;P&gt;Thanks very much!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 05:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-across-columns/m-p/210111#M61457</guid>
      <dc:creator>cheung_bea</dc:creator>
      <dc:date>2017-01-03T05:56:40Z</dc:date>
    </item>
  </channel>
</rss>

