<?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 do you calculate the difference between two specific values in the same field (%) then timechart span=1h for the past 24hrs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422690#M121375</link>
    <description>&lt;P&gt;Is it like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=example event="Entered Site" OR event="Checkout"
 | timechart span=1h count(eval(event="Entered Site")) as Entered,count(eval(event="Checkout")) as Checkout
 | eval percent=round(Checkout/Entered,2)
 | table _time,percent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Oct 2018 00:47:48 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2018-10-11T00:47:48Z</dc:date>
    <item>
      <title>How do you calculate the difference between two specific values in the same field (%) then timechart span=1h for the past 24hrs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422689#M121374</link>
      <description>&lt;P&gt;How do you calculate the difference between two specific values in the same field and return that value in a percent format?  I then need to be able to timechart that percentage difference over time, for my example this would be &lt;/P&gt;

&lt;P&gt;conversion rate % span 1h    &lt;/P&gt;

&lt;P&gt;I've seen a few eval calculation example but none that gave me the output I'm looking for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=example event="Entered Site" OR event="Checkout"
| top event
| eval percent = round(percent, 2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 23:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422689#M121374</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-10-10T23:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two specific values in the same field (%) then timechart span=1h for the past 24hrs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422690#M121375</link>
      <description>&lt;P&gt;Is it like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=example event="Entered Site" OR event="Checkout"
 | timechart span=1h count(eval(event="Entered Site")) as Entered,count(eval(event="Checkout")) as Checkout
 | eval percent=round(Checkout/Entered,2)
 | table _time,percent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 00:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422690#M121375</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-10-11T00:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two specific values in the same field (%) then timechart span=1h for the past 24hrs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422691#M121376</link>
      <description>&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/5911iE59A8EB65BA7480C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;@HiroshiSatoh I'm trying to essentially reproduce the graph below that I have in an application called Mixpanel.  I've onboarded the data to Splunk and the field I'm looking to visualization is called "event".  In the event there are values called "App Opened" and "Product Checkout Began".  I would like to know how you can calculate the % of Product Checkout Began from the total of App Opened and then timechart that % over time.  For Example what is my conversion rate % per hour.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 01:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422691#M121376</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-10-11T01:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two specific values in the same field (%) then timechart span=1h for the past 24hrs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422692#M121377</link>
      <description>&lt;P&gt;The answer was corrected.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 01:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-specific-values/m-p/422692#M121377</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-10-11T01:30:08Z</dc:date>
    </item>
  </channel>
</rss>

