<?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 Groups share of total in RFM analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Groups-share-of-total-in-RFM-analysis/m-p/222997#M75566</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'm new to QlikView and now I meet some problems when trying to do some RFM analysis. It's mainly about range of the total.&lt;/P&gt;&lt;P&gt;In my case, I create some records for test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;let vStart = num(makedate(2008,1,1));&lt;BR /&gt;let vEnd = num(today());&lt;BR /&gt;let vRFMGroups = 10;&lt;BR /&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;load&lt;BR /&gt; 'Store ' &amp;amp; pick(ceil(rand()*5), 'A','B','C','D','E') as OrderStore,&lt;BR /&gt; floor(rand()*1000+1) as CustomerID,&lt;BR /&gt; date($(vStart)+floor(rand()*($(vEnd)-$(vStart))), 'YYYY-MM-DD') as OrderDate,&lt;BR /&gt; ceil(rand()*1000) as OrderAmt&lt;BR /&gt;autogenerate 30000;&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt; recno() as OrderID,&lt;BR /&gt; *&lt;BR /&gt;resident Temp&lt;BR /&gt;order by OrderDate;&lt;BR /&gt;&lt;BR /&gt;drop table Temp;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;RawData:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1489_sourceID:1489" /&gt;&lt;/P&gt;&lt;P&gt;Because I am not so familiar with the RFM theory yet, I'll split it into several parts.&lt;/P&gt;&lt;P&gt;For the Monetary part, I have finished the 1st chart [Performance of customer groups: group by same nb of customers, order by amt of each customer DESC]&lt;/P&gt;&lt;P&gt;995 customers (with the filter [OrderStore=Store A]) are put into 10 groups, and each group has almost the same nb of customers (995/10=100).&lt;/P&gt;&lt;P&gt;For the dimension [Group], I use aggr and rank functions. like =aggr(ceil(rank(Sum(OrderAmt), 4)/100), OrderStore, CustomerID)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1490_sourceID:1490" /&gt;&lt;/P&gt;&lt;P&gt;Now we can compare the performances of each group.&lt;/P&gt;&lt;P&gt;Next step, I want to group the customers by OrderAmt, also order by OrderAmt. That means each group will share &lt;B&gt;ABOUT&lt;/B&gt; (normally not exactly)10% of the total sales. So how can I put the dimension [Group]?&lt;/P&gt;&lt;P&gt;The following is like what i would like to see.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1491_sourceID:1491" /&gt;&lt;/P&gt;&lt;P&gt;You can see that the F (Amt) column is around 10% of the total, but not exactly.&lt;/P&gt;&lt;P&gt;So can anyone help to supply some solutions or suggestions?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 07:22:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-23T07:22:05Z</dc:date>
    <item>
      <title>Groups share of total in RFM analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Groups-share-of-total-in-RFM-analysis/m-p/222997#M75566</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'm new to QlikView and now I meet some problems when trying to do some RFM analysis. It's mainly about range of the total.&lt;/P&gt;&lt;P&gt;In my case, I create some records for test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;let vStart = num(makedate(2008,1,1));&lt;BR /&gt;let vEnd = num(today());&lt;BR /&gt;let vRFMGroups = 10;&lt;BR /&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;load&lt;BR /&gt; 'Store ' &amp;amp; pick(ceil(rand()*5), 'A','B','C','D','E') as OrderStore,&lt;BR /&gt; floor(rand()*1000+1) as CustomerID,&lt;BR /&gt; date($(vStart)+floor(rand()*($(vEnd)-$(vStart))), 'YYYY-MM-DD') as OrderDate,&lt;BR /&gt; ceil(rand()*1000) as OrderAmt&lt;BR /&gt;autogenerate 30000;&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt; recno() as OrderID,&lt;BR /&gt; *&lt;BR /&gt;resident Temp&lt;BR /&gt;order by OrderDate;&lt;BR /&gt;&lt;BR /&gt;drop table Temp;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;RawData:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1489_sourceID:1489" /&gt;&lt;/P&gt;&lt;P&gt;Because I am not so familiar with the RFM theory yet, I'll split it into several parts.&lt;/P&gt;&lt;P&gt;For the Monetary part, I have finished the 1st chart [Performance of customer groups: group by same nb of customers, order by amt of each customer DESC]&lt;/P&gt;&lt;P&gt;995 customers (with the filter [OrderStore=Store A]) are put into 10 groups, and each group has almost the same nb of customers (995/10=100).&lt;/P&gt;&lt;P&gt;For the dimension [Group], I use aggr and rank functions. like =aggr(ceil(rank(Sum(OrderAmt), 4)/100), OrderStore, CustomerID)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1490_sourceID:1490" /&gt;&lt;/P&gt;&lt;P&gt;Now we can compare the performances of each group.&lt;/P&gt;&lt;P&gt;Next step, I want to group the customers by OrderAmt, also order by OrderAmt. That means each group will share &lt;B&gt;ABOUT&lt;/B&gt; (normally not exactly)10% of the total sales. So how can I put the dimension [Group]?&lt;/P&gt;&lt;P&gt;The following is like what i would like to see.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1491_sourceID:1491" /&gt;&lt;/P&gt;&lt;P&gt;You can see that the F (Amt) column is around 10% of the total, but not exactly.&lt;/P&gt;&lt;P&gt;So can anyone help to supply some solutions or suggestions?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 07:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Groups-share-of-total-in-RFM-analysis/m-p/222997#M75566</guid>
      <dc:creator />
      <dc:date>2010-04-23T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Groups share of total in RFM analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Groups-share-of-total-in-RFM-analysis/m-p/222998#M75567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have you worked out some reliable soultion&amp;nbsp; for RFM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Piotr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 10:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Groups-share-of-total-in-RFM-analysis/m-p/222998#M75567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-14T10:16:49Z</dc:date>
    </item>
  </channel>
</rss>

