<?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 How do I generate a search that shows me the total REVENUE generated per by week? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418814#M174280</link>
    <description>&lt;P&gt;Hi Guys, &lt;/P&gt;

&lt;P&gt;I'm a new Splunk user: I have a dataset with fields Date, ACC_NBR, Count, REVENUE. Date (Date when number was billed), Field ACC_NBR(Cellphone Number), Count(counts the number of times the number was billed)REVENUE(The amount deducted). I want to generate a search which shows me the total REVENUE generated per by week. &lt;/P&gt;

&lt;P&gt;Date, ACC_NBR, Count, REVENUE&lt;BR /&gt;
01/08/2017,72100979,1,5&lt;BR /&gt;
01/08/2017,72101041,1,0.7&lt;BR /&gt;
02/08/2017,75331219,1,0.7&lt;BR /&gt;
02/08/2017,75331419,1,5&lt;BR /&gt;
02/08/2017,75332059,1,0.7&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:15:46 GMT</pubDate>
    <dc:creator>makhombi</dc:creator>
    <dc:date>2020-09-29T22:15:46Z</dc:date>
    <item>
      <title>How do I generate a search that shows me the total REVENUE generated per by week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418814#M174280</link>
      <description>&lt;P&gt;Hi Guys, &lt;/P&gt;

&lt;P&gt;I'm a new Splunk user: I have a dataset with fields Date, ACC_NBR, Count, REVENUE. Date (Date when number was billed), Field ACC_NBR(Cellphone Number), Count(counts the number of times the number was billed)REVENUE(The amount deducted). I want to generate a search which shows me the total REVENUE generated per by week. &lt;/P&gt;

&lt;P&gt;Date, ACC_NBR, Count, REVENUE&lt;BR /&gt;
01/08/2017,72100979,1,5&lt;BR /&gt;
01/08/2017,72101041,1,0.7&lt;BR /&gt;
02/08/2017,75331219,1,0.7&lt;BR /&gt;
02/08/2017,75331419,1,5&lt;BR /&gt;
02/08/2017,75332059,1,0.7&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418814#M174280</guid>
      <dc:creator>makhombi</dc:creator>
      <dc:date>2020-09-29T22:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a search that shows me the total REVENUE generated per by week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418815#M174281</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;try &lt;CODE&gt;index=&amp;lt;your_index&amp;gt; earliest=@w0| stats sum(REVENUE) by ACC_NBR&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@w0 = beginning of the week
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or use &lt;CODE&gt;earliest=-7d@d&lt;/CODE&gt;  for 7 days, depending on what "a week" is for you&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 13:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418815#M174281</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-12-04T13:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a search that shows me the total REVENUE generated per by week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418816#M174282</link>
      <description>&lt;P&gt;Assuming you have timestamp extraction done right, use &lt;CODE&gt;timechart span=w sum(REVENUE)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 19:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418816#M174282</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-12-04T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a search that shows me the total REVENUE generated per by week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418817#M174283</link>
      <description>&lt;P&gt;This is a follow-up question to my first. The following query worked for me. I managed to get the total revenue generated per  ACC_NBR. &lt;/P&gt;

&lt;P&gt;The 2nd part of the question:  How to show the total revenue generated per week. &lt;/P&gt;

&lt;P&gt;| stats sum(REVENUE) by ACC_NBR&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-generate-a-search-that-shows-me-the-total-REVENUE/m-p/418817#M174283</guid>
      <dc:creator>makhombi</dc:creator>
      <dc:date>2018-12-06T12:45:53Z</dc:date>
    </item>
  </channel>
</rss>

