<?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: Is there a way to calculate the percentile of a value within a range of values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269875#M81226</link>
    <description>&lt;P&gt;Have you tried any of these? &lt;CODE&gt;p&amp;lt;X&amp;gt;(Y) | perc&amp;lt;X&amp;gt;(Y) | exactperc&amp;lt;X&amp;gt;(Y) | upperperc&amp;lt;X&amp;gt;(Y)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 14:18:06 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-10-24T14:18:06Z</dc:date>
    <item>
      <title>Is there a way to calculate the percentile of a value within a range of values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269874#M81225</link>
      <description>&lt;P&gt;One of the most useful functions in Excel is percentilerank, which calculates the percentile of a value within a range of values.  The closest I've been able to get is to do a p10, p20, p30, etc. and then search for everything below the value.  I'm trying to show benchmarks and the function would be quite useful.&lt;/P&gt;

&lt;P&gt;If you're not familiar with the percentilerank function, it works as follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You specify percentilerank(value, array of values)&lt;/LI&gt;
&lt;LI&gt;Percentile rank returns the percentile for that value (e.g., 23rd percentile)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;It's basically the converse of the perc commands.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 16:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269874#M81225</guid>
      <dc:creator>Kenshiro70</dc:creator>
      <dc:date>2016-10-22T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to calculate the percentile of a value within a range of values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269875#M81226</link>
      <description>&lt;P&gt;Have you tried any of these? &lt;CODE&gt;p&amp;lt;X&amp;gt;(Y) | perc&amp;lt;X&amp;gt;(Y) | exactperc&amp;lt;X&amp;gt;(Y) | upperperc&amp;lt;X&amp;gt;(Y)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 14:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269875#M81226</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-24T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to calculate the percentile of a value within a range of values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269876#M81227</link>
      <description>&lt;P&gt;This should be it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count by value | sort + value
    | streamstats current=f sum(count) as rank | fillnull rank
    | eventstats sum(count) as total | eval percentile_rank = rank / total * 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will assign each unique value its absolute rank and then convert that to percentile rank using the total number of values.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 15:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269876#M81227</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-10-29T15:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to calculate the percentile of a value within a range of values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269877#M81228</link>
      <description>&lt;P&gt;Nice - it even accounts for duplicate values!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 17:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-calculate-the-percentile-of-a-value-within-a/m-p/269877#M81228</guid>
      <dc:creator>Kenshiro70</dc:creator>
      <dc:date>2016-10-29T17:34:33Z</dc:date>
    </item>
  </channel>
</rss>

