<?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: Fractile not working as expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377198#M495196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see anything wrong with your fractile number (looking at the complete data set).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compared the outcome for example for the 2-quantile with the median(VENDA) as well as with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=min(aggr(if(rank(-sum(VENDA),4)=floor(312844/2),sum(VENDA)),CLIENTE))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and got returned 44,4 (as with your table expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the other two values seemed reasonable to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that you are showing a cumulative relative (percentage) of the sum(VENDA), though I believe you shouldn't look at e.g. the 50% threshold VENDA value while looking for the 2-quantile / median, these are different metrics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Aug 2012 12:42:23 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-08-12T12:42:23Z</dc:date>
    <item>
      <title>Fractile not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377197#M495195</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The&amp;nbsp; table has 2 columns : customer name&amp;nbsp; and sales value with 312.844 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I need to get the bottom value on 3 tiers:&amp;nbsp;&amp;nbsp; 25 % for the first, 50 % for the second and 75 % for the third.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm trying to use the factile function, but I think it´s not working as expected.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When I select a hundred of customers, it works. But when I clear the selection , the values returned doesn´t make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; the expression are simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fractile ( sales, 0.75),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fractile ( sales, 0.50)&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fractile ( sales, 0.25)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There are any know issues with fractile and large datasets ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I do the tests with&amp;nbsp; QV10 sr4 and QV11 sr4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The QVW is attached with the sample data and a test chart with the expressions above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2012 03:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377197#M495195</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2012-08-12T03:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377198#M495196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see anything wrong with your fractile number (looking at the complete data set).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compared the outcome for example for the 2-quantile with the median(VENDA) as well as with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=min(aggr(if(rank(-sum(VENDA),4)=floor(312844/2),sum(VENDA)),CLIENTE))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and got returned 44,4 (as with your table expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the other two values seemed reasonable to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that you are showing a cumulative relative (percentage) of the sum(VENDA), though I believe you shouldn't look at e.g. the 50% threshold VENDA value while looking for the 2-quantile / median, these are different metrics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2012 12:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377198#M495196</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-12T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377199#M495197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Stefan. I cannot find anything wrong with the fractile calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a histogram to analyze the data, and it shows that 0, 44.4 and 165.7 are the fractiles you search for. I hard-coded these numbers in a calculated dimension and got this bar chart:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="20011" class="jive-image-thumbnail jive-image" onclick="" alt="histogram.jpg" src="https://community.qlik.com/legacyfs/online/20011_histogram.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;In it you can see that very few values are below 0, roughly 27% are exactly 0, etc. So the fractiles are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2012 15:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377199#M495197</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-08-12T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377200#M495198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan and Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your answers and correct me on the usage of this function.&amp;nbsp; My mistake .&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I try to use this function to get the mininum value of sales on each quartile. I´ve created the cumulative % of Sales to check if the resulting value of the fractile column was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now I think it´s worth to use some sort of combination of rank , min and aggr functions to get what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo Labbe Ibaceta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 03:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-not-working-as-expected/m-p/377200#M495198</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2012-08-14T03:36:06Z</dc:date>
    </item>
  </channel>
</rss>

