<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400231#M148902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the count(customer) to check the result of fractile function.&lt;/P&gt;&lt;P&gt;I was thinking that if I use fractile(), each lines will have the same number of customers. But it's not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; background-color: #ffffff;"&gt;"In &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Descriptive_statistics" style="text-decoration: initial; color: #0b0080; background-color: #ffffff; font-family: sans-serif;" title="Descriptive statistics"&gt;descriptive statistics&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; background-color: #ffffff;"&gt;, any of the nine values that divide the sorted data into ten equal parts"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; background-color: #ffffff;"&gt;And it's false if i used the fractile function, there is not ten equal parts&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 12:44:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-03T12:44:34Z</dc:date>
    <item>
      <title>Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400229#M148900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of customers with profits associated. I want to use the fractile function. I was thinking that the fractile function take the 10 first % of my clients and calculated the profit. but in fact, it takes the 10% of profits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I have this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0-10% of best clients profit | number of customers (and each line contains the same number of customers)&lt;/P&gt;&lt;P&gt;10-20% |&amp;nbsp; 1 759&lt;/P&gt;&lt;P&gt;20-30% |&amp;nbsp; 1 759&lt;/P&gt;&lt;P&gt;30-40% |&amp;nbsp; 1 759&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400229#M148900</guid>
      <dc:creator />
      <dc:date>2012-12-03T12:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400230#M148901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I haven't got what you are trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are in doubt, what a fractile calculation does, please check:&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://en.wikipedia.org/wiki/Fractile" title="http://en.wikipedia.org/wiki/Fractile"&gt;http://en.wikipedia.org/wiki/Fractile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or start with the well known special case of a median:&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://en.wikipedia.org/wiki/Median" title="http://en.wikipedia.org/wiki/Median"&gt;http://en.wikipedia.org/wiki/Median&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get all customers per line:&lt;/P&gt;&lt;P&gt;=count(TOTAL customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=count(TOTAL customer) / 10 &lt;/P&gt;&lt;P&gt;to get your required 1759 (i.e. count of TOTAL divided by number of your classes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400230#M148901</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-03T12:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400231#M148902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the count(customer) to check the result of fractile function.&lt;/P&gt;&lt;P&gt;I was thinking that if I use fractile(), each lines will have the same number of customers. But it's not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; background-color: #ffffff;"&gt;"In &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Descriptive_statistics" style="text-decoration: initial; color: #0b0080; background-color: #ffffff; font-family: sans-serif;" title="Descriptive statistics"&gt;descriptive statistics&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; background-color: #ffffff;"&gt;, any of the nine values that divide the sorted data into ten equal parts"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; background-color: #ffffff;"&gt;And it's false if i used the fractile function, there is not ten equal parts&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400231#M148902</guid>
      <dc:creator />
      <dc:date>2012-12-03T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400232#M148903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help please ?&lt;/P&gt;&lt;P&gt;Is it clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 13:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400232#M148903</guid>
      <dc:creator />
      <dc:date>2012-12-03T13:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400233#M148904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's quite clear. I see what you are talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the fractile function itself is not dividing your data set into equal parts, it's just returning the threshold value that divides your data set into equal parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue arises if you have clustered data (like in your case, your data is clustered around the integer values or values with a single decimal, create a histogram or a list box with frequency count to see what I mean).&lt;/P&gt;&lt;P&gt;If a fractile calculations returns one of the clustered values, your chart will count all of these records even if only part of should be counted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To illustrate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, recno() as Value2, 1 as Value3 INLINE [&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates three different distibutions, try calculating your deciles for all three and check the outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: using rank() in the calculated dimension might be get you a bit closer to what you want to achieve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(Profit),0,4)&amp;lt;0.1*count(total Customer), '90-100%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.2*count(total Customer), '80-90%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.3*count(total Customer), '70-80%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.4*count(total Customer), '60-70%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.5*count(total Customer), '50-60%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.6*count(total Customer), '40-50%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.7*count(total Customer), '30-40%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.8*count(total Customer), '20-30%',&lt;/P&gt;&lt;P&gt;if(rank(sum(Profit),4)&amp;lt;0.9*count(total Customer), '10-20%'&lt;/P&gt;&lt;P&gt;, '0-10%'))))))))),Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 13:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400233#M148904</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-03T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400234#M148905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 13:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400234#M148905</guid>
      <dc:creator />
      <dc:date>2012-12-03T13:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400235#M148906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an error in the script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works with rank(sum(profit), &lt;SPAN style="color: #737373; font-family: Arial;"&gt;4, 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=aggr(if(rank(sum(Profit),4, 1)&amp;lt;0.1*count(total Customer), '90-100%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.2*count(total Customer), '80-90%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.3*count(total Customer), '70-80%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.4*count(total Customer), '60-70%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.5*count(total Customer), '50-60%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.6*count(total Customer), '40-50%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.7*count(total Customer), '30-40%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.8*count(total Customer), '20-30%',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(rank(sum(Profit),4&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;, 1&lt;/SPAN&gt;)&amp;lt;0.9*count(total Customer), '10-20%'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;, '0-10%'))))))))),Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 08:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/400235#M148906</guid>
      <dc:creator />
      <dc:date>2012-12-12T08:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile function</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/2013914#M1221853</link>
      <description>&lt;P&gt;why are you using 4,1 , what does it signifies&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 17:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-function/m-p/2013914#M1221853</guid>
      <dc:creator>Rajesh31</dc:creator>
      <dc:date>2022-12-07T17:00:54Z</dc:date>
    </item>
  </channel>
</rss>

