<?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 Quartile (Upper and Lower) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144040#M23110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fractile(Data,.25) and fractile(Data,.75)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 01:18:13 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-05-14T01:18:13Z</dc:date>
    <item>
      <title>How to perform the statistical function: Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144035#M23105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I need to find the &lt;STRONG&gt;upper and lower quartile for a given set of records using the most efficient method&lt;/STRONG&gt; &lt;STRONG&gt;possible&lt;/STRONG&gt; as I need to return the results with sub second response times for millions of rows of data.&lt;/P&gt;&lt;P&gt;As the set changes with the selections the calculation cannot be written into the code.&lt;/P&gt;&lt;P&gt;Therefore do I put the calculation in the expression on each chart or write some sort of function?&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;BR /&gt;Paul Bartram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 20:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144035#M23105</guid>
      <dc:creator />
      <dc:date>2009-05-13T20:42:21Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144036#M23106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;BR /&gt;I'd recommend to try a macro using API method ParetoSelect or TopSelect. Although the sub-second response looks really tough if you cannot precalculate in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 22:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144036#M23106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T22:18:22Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144037#M23107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand the issue correctly you should be able to create something like this using the Rank() function.&lt;/P&gt;&lt;P&gt;For example if you have one dimension called Dimension and one expression, Sum(Value) you could use ranking on the Sum(Value) and then compare that ranking to the highest total ranking and only use those that are in the top quartile or any other range really.&lt;/P&gt;&lt;P&gt;The expression would look something like:&lt;/P&gt;&lt;P&gt;if(Rank(Sum(Value),0,1)&amp;lt;=floor(max(total aggr(Rank(Sum(Value),0,1),Dimension))*0.25),1,0)&lt;/P&gt;&lt;P&gt;If the rank for the current dimension value is lower or equal to the highest rank * 0.25, the expression returns 1, else 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jsn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 22:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144037#M23107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T22:44:41Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144038#M23108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quick responses, however this doesn't account for the following which is normally resolved in a Quartile function&lt;BR /&gt;&lt;BR /&gt;Data&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;4&lt;BR /&gt;7&lt;BR /&gt;8&lt;BR /&gt;9&lt;BR /&gt;10&lt;BR /&gt;12&lt;/P&gt;&lt;P&gt;If the dataset is like the one above, to work out the Quartile you have to say there are (8 datapoints +1)/4 which equal 2.25, therefore both 2 and 4 fall into this. so you have to say (2+4)/2 = 3.5&lt;/P&gt;&lt;P&gt;So the first quartile to the dataset above is 3.5, your equation would select 2 as the Quartile which is incorrect.&lt;BR /&gt;&lt;BR /&gt;I need a quick method to calculate the above possibility.&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;BR /&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 00:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144038#M23108</guid>
      <dc:creator />
      <dc:date>2009-05-14T00:09:19Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144039#M23109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for you reply, I think the TopSelect will have the same issue as my comment above, however I'm not sure what ParetoSelect is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 00:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144039#M23109</guid>
      <dc:creator />
      <dc:date>2009-05-14T00:25:18Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144040#M23110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fractile(Data,.25) and fractile(Data,.75)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 01:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144040#M23110</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-14T01:18:13Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144041#M23111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I'm not sure how any specific quartile calculation would work. The (2+4)/2 should equal 3 though I'm not sure how this relates. The expression would likely need some modification to calculate the cut-off criteria correctly for your desired result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 01:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144041#M23111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-14T01:22:56Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144042#M23112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in addition to John suggestion to use fractile, you have a document property settings you ay adjust to improve calculation speed :&lt;/P&gt;&lt;P&gt;when not selected, this function interpolates (as Excel centile function does) so I assume this is faster.&lt;/P&gt;&lt;P&gt;when selected, QV use discontinuated values calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 01:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144042#M23112</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-05-14T01:43:34Z</dc:date>
    </item>
    <item>
      <title>Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144043#M23113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;BR /&gt;TopSelect allows to make selections like "top 5 sales reps, where criteria is sum(Sales)".&lt;BR /&gt;ParetoSelect allows to make selections like "top sales reps, who bring 75% of sales, where criteria is sum(Sales)".&lt;BR /&gt;I think that solution from jsn is functionaly correct (maybe you need some adjustments), but it may be slow because of aggr() function. Worth trying anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 07:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144043#M23113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-14T07:32:03Z</dc:date>
    </item>
    <item>
      <title>How to perform the statistical function: Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144044#M23114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok were getting closer, I thought the Fractile function might of been the answer, but it's not quite there.&lt;/P&gt;&lt;P&gt;As a test for anyones function to find the lower quartile and upper quartile for the following data:&lt;/P&gt;&lt;P&gt;11, 4, 6, 8, 3, 10, 8, 10, 4, 12 and 31.&lt;/P&gt;&lt;P&gt;To work this out manully you first have to Order the data, so we get 3, 4, 4, 6, 8, 8,10, 10, 11, 12 and 31.&lt;/P&gt;&lt;P&gt;The lower quartile is the (11 + 1) ÷ 4 = 3rd value in on the dataset. (11 being the count of datapoints)&lt;BR /&gt;The upper quartile is the 3 (11 + 1) ÷ 4 = 9th value in on the dataset.&lt;/P&gt;&lt;P&gt;Therefore, the lower quartile is 4, and the upper quartile is 11.&lt;/P&gt;&lt;P&gt;3, 4, 4, 6, 8, 8, 10, 10, 11, 12, 31&lt;/P&gt;&lt;P&gt;I got the above example from the BBC website &lt;A href="http://www.bbc.co.uk/schools/gcsebitesize/maths/data/representingdata3hirev4.shtml"&gt;http://www.bbc.co.uk/schools/gcsebitesize/maths/data/representingdata3hirev4.shtml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Additional ref: &lt;A href="http://en.wikipedia.org/wiki/Quartile"&gt;http://en.wikipedia.org/wiki/Quartile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Johns, factile function fractile(Data,.25) for the lower quartile returns the answer as 5 and fractile(Data,.75) for the upper quartile returns the answer as 10.5, neither of which are one of the datapoints. The problem arrises when the factile falls between two datapoints, these to adjacent datapoints have to be added together and divided by 2.&lt;/P&gt;&lt;P&gt;Based on the examples from the BBC and Wikipedia, the Quartile function in Excel returns the incorrect result (sames as Johns Factile). Which beggers the question whos right?&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;BR /&gt;Paul Bartram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 20:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144044#M23114</guid>
      <dc:creator />
      <dc:date>2009-05-14T20:51:59Z</dc:date>
    </item>
    <item>
      <title>How to perform the statistical function: Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144045#M23115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the Wikipedia article, "There is no universal agreement on choosing the quartile values".&lt;/P&gt;&lt;P&gt;That said, and while I'm not a mathematician, the basic point of the first quartile is to split the values into 1/4 and 3/4 of the data points. 4 fails this test. You're either splitting the set into {1} and {6,8,8,10,10,11,12,31) or into {1,4,4} and {4,4,6,8,8,10,10,11,12,31). Basically, there's no reason to include 4 in one set or the other, so it makes no sense to me to include it in the lower set while excluding it from the upper.&lt;/P&gt;&lt;P&gt;5, on the other hand, DOES neatly split the set into 1/4 and 3/4, and is the halfway point between two of our values (4 and 6). So it seems like a logical answer to me, regardless of its correctness.&lt;/P&gt;&lt;P&gt;All that said, if you want the answers 4, 8 and 11 for this data set, all you have to do is go into document properties, main tab, and select "legacy fractile calculation". In other words, QlikView is leaving up to you how you think the quartiles should be calculated since there isn't a universally-agreed upon answer.&lt;/P&gt;&lt;P&gt;That's my unprofessional take on it, anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 01:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144045#M23115</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-15T01:19:09Z</dc:date>
    </item>
    <item>
      <title>How to perform the statistical function: Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144046#M23116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I'm short of time to help on this, but hopefully the attached example application will point you in the right direction. Wrt how to split your quartiles - well, it seems from the mixed response that the jury is out. I'm unsure as to the relevance of calculating the quartile as the average of the two nearby values - it would seem reasonable to assume that the quartiles will be used for division of result sets, i.e. "retrieve everything in quartile 1 so I can perform calculations on the corresponding record set". Since an in-between data point doesn't actually exist, for calculation purposes it seems to me to serve little value, but then again there may well be valid business reasons why this is of importance.&lt;/P&gt;&lt;P&gt;Best of luck!&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 03:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144046#M23116</guid>
      <dc:creator />
      <dc:date>2009-05-15T03:03:42Z</dc:date>
    </item>
    <item>
      <title>How to perform the statistical function: Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144047#M23117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;You are correct, it is upto my client to decide the correct way in which they want to calculate the Quartiles&lt;/P&gt;&lt;P&gt;It appears that calculating quartiles is a common task that can be accomplished in multiple ways, but not all calculations return the same results for the same data. There are many definitions of a quartile as well as multiple descriptive terms (percentile, quartile). The challenge is to determine which method my client wants to use.&lt;/P&gt;&lt;P&gt;Here are some of the possible methods available.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4743.Quartiles.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4743.Quartiles.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144047#M23117</guid>
      <dc:creator />
      <dc:date>2009-05-15T15:26:39Z</dc:date>
    </item>
    <item>
      <title>How to perform the statistical function: Quartile (Upper and Lower)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144048#M23118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys ,&lt;/P&gt;&lt;P&gt;Thanks for above discussion , i applied few part from here in my document &amp;amp; got appreciation for same.&lt;/P&gt;&lt;P&gt;Its all because of you all.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhushan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 17:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-perform-the-statistical-function-Quartile-Upper-and-Lower/m-p/144048#M23118</guid>
      <dc:creator />
      <dc:date>2010-03-26T17:40:24Z</dc:date>
    </item>
  </channel>
</rss>

