<?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 perform mathematical calculations based off one column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426414#M122147</link>
    <description>&lt;P&gt;| stats  sum(ACCESS_REVIEW_COMPLETE) as Total count as count1&lt;BR /&gt;
| eval result=(Total/count1)&lt;/P&gt;

&lt;P&gt;Check if this helps&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:38:00 GMT</pubDate>
    <dc:creator>prabhakar_ps</dc:creator>
    <dc:date>2020-09-30T01:38:00Z</dc:date>
    <item>
      <title>How to perform mathematical calculations based off one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426413#M122146</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm new to Splunk and I'm having trouble with the following line of code. I think what I'm trying to do is pretty self-explanatory. Essentially the data I'm working with is one column and the values in the column are "0" or "1". &lt;BR /&gt;
Any help would be greatly appreciated. Thank you!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats sum(ACCESS_REVIEW_COMPLETE) \ count(ACCESS_REVIEW_COMPLETE)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Aug 2019 23:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426413#M122146</guid>
      <dc:creator>gdorman619</dc:creator>
      <dc:date>2019-08-02T23:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform mathematical calculations based off one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426414#M122147</link>
      <description>&lt;P&gt;| stats  sum(ACCESS_REVIEW_COMPLETE) as Total count as count1&lt;BR /&gt;
| eval result=(Total/count1)&lt;/P&gt;

&lt;P&gt;Check if this helps&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426414#M122147</guid>
      <dc:creator>prabhakar_ps</dc:creator>
      <dc:date>2020-09-30T01:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform mathematical calculations based off one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426415#M122148</link>
      <description>&lt;P&gt;@gdorman619 try the following search ratio field will have required output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourCurrentSearch&amp;gt;
| stats sum(ACCESS_REVIEW_COMPLETE) as sum count(ACCESS_REVIEW_COMPLETE) as count
| eval ratio=round(sum/count,2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Aug 2019 04:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426415#M122148</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-03T04:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform mathematical calculations based off one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426416#M122149</link>
      <description>&lt;P&gt;Thank you very much! It worked.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 14:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-mathematical-calculations-based-off-one-column/m-p/426416#M122149</guid>
      <dc:creator>gdorman619</dc:creator>
      <dc:date>2019-08-03T14:26:00Z</dc:date>
    </item>
  </channel>
</rss>

