<?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 Doubt Challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821213#M289486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my theread and attached document for Fractile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikcommunity.qliktech.com/docs/DOC-7328" title="http://qlikcommunity.qliktech.com/docs/DOC-7328"&gt;http://qlikcommunity.qliktech.com/docs/DOC-7328&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 00:10:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-13T00:10:56Z</dc:date>
    <item>
      <title>Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821204#M289477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a doubt trying to classify my results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of sales by customer, and I'd like to classify them with numbers, to see the quality of my customers, something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 : 0-20%&amp;nbsp;&amp;nbsp; of the amount of sales&lt;/P&gt;&lt;P&gt;2 : 20-40% of the amount of sales&lt;/P&gt;&lt;P&gt;3 : 40-60% of the amount of sales&lt;/P&gt;&lt;P&gt;4 : 60-80% of the amount of sales&lt;/P&gt;&lt;P&gt;5 : 80-100% of the amount of sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be my desired result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 240px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="font-style: inherit;" width="80"&gt;Cust_id&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; font-style: inherit;" width="80"&gt;Amount&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="80"&gt;Rank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none; font-style: inherit;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;200&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none; font-style: inherit;" width="80"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="80"&gt;200&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none; font-style: inherit;" width="80"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;400&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none; font-style: inherit;" width="80"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;400&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none; font-style: inherit;" width="80"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;600&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none; font-style: inherit;" width="80"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;600&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="80"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="80"&gt;800&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="80"&gt;8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="80"&gt;800&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="80"&gt;9&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="80"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="80"&gt;10&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="80"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas of how to do that? By rank function? fractile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821204#M289477</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2014-11-12T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821205#M289478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcel, I'm a little confused regarding your requirement. You mentioned that rank #1 would be "0-20% of the amount of sales." Does that mean that you want to order your sales-by-customer from smallest to largest, take the smallest X sales that add up to 20% of the total of all sales, and assign those customers to rank #1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, you're doing something different? It looks like the target you're comparing against is 1,000, which is the greatest sale for a single customer. So what your example does is, again, sorts sales-by-customer from smallest to largest, but then assigns a rank of #1 to those customers who have sales &amp;lt;=20% of the greatest sale (not the total).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 19:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821205#M289478</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-11-12T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821206#M289479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad, the point of this is to do a &lt;A href="http://info.wealthengine.com/rs/wealthengine/images/RFM.pdf"&gt;RFM Analysis&lt;/A&gt;, and I need the "scores" of some metrics. One of them is the amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to classify all the amounts by customer by score (5 is the maximum, and 1 is the lower). And I'm trying to do it with percentile, rank... with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 19:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821206#M289479</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2014-11-12T19:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821207#M289480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_141855_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71119_QlikCommunity_Thread_141855_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14158260894361840" jivemacro_uid="_14158260894361840"&gt;
&lt;P&gt;SET vRankSize = '20%';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabCustomers:&lt;/P&gt;
&lt;P&gt;LOAD Cust_id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="141855" data-objecttype="1" href="http://community.qlik.com/thread/141855"&gt;http://community.qlik.com/thread/141855&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join&lt;/P&gt;
&lt;P&gt;LOAD Max(Amount) as MaxAmount&lt;/P&gt;
&lt;P&gt;Resident tabCustomers;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cust_id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Amount/MaxAmount,'$(vRankSize)')/'$(vRankSize)' as Rank&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Resident tabCustomers;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field MaxAmount&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 21:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821207#M289480</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-12T21:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821208#M289481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks Vlad, the point of this is to do a RFM Analysis, and I need the "scores" of some metrics. One of them is the amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'd like to classify all the amounts by customer by score (5 is the maximum, and 1 is the lower). And I'm trying to do it with percentile, rank... with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you know how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 21:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821208#M289481</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2014-11-12T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821209#M289482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marco for the idea, nice try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apologies for the misunderstanding, that table was just an example, and the calculation it has to be dynamic, in order to get 5 different groups. I think it is called a quintile, but in Qlikview it only exist the percentile function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that each 20% belongs to a group (1,2,3,4,5) and it has to be selected as an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 21:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821209#M289482</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2014-11-12T21:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821210#M289483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcel, I'm still confused. I don't understand if you're trying to rank 20% of your customers or 20% of your volume. I'm going to assume you mean customers. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5*ceil(rank(-sum(Amount),4,1)/count(distinct total Cust_id),.2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited to add "total" to denominator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 22:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821210#M289483</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-11-12T22:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821211#M289484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Vlad if I'm not explaining very well, what I'm trying to do is to classify my customers in 5 groups (as the percentile does). The group 1 is the group of the lowest purchases and the group 5 is the group of the higher purchases. If you see the RFM analysis on the web, you're going to understand it very well. The goal of this is to put an score to a customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 22:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821211#M289484</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2014-11-12T22:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821212#M289485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me try to ask it another way: will each of your five groups have the same number of customers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 23:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821212#M289485</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-11-12T23:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fractile Doubt Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821213#M289486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my theread and attached document for Fractile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikcommunity.qliktech.com/docs/DOC-7328" title="http://qlikcommunity.qliktech.com/docs/DOC-7328"&gt;http://qlikcommunity.qliktech.com/docs/DOC-7328&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 00:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fractile-Doubt-Challenge/m-p/821213#M289486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-13T00:10:56Z</dc:date>
    </item>
  </channel>
</rss>

