<?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: Grouping customers based on their actions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722209#M259242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying your solution as described above. For some reason, it's not giving me the answers I expect, but it seems to be on the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll create a sample application and share it which will illustrate the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 16:49:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-29T16:49:26Z</dc:date>
    <item>
      <title>Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722204#M259237</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;I would like to be able to make arbitrary sets of customers who have performed some action, and be able to put them into a chart. Let me illustrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I want to be able to group my customers into those who have bought product A, product B, product C or None of the Above. Then I'd like to show my sales for each. Result should look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group Product A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1M&lt;/P&gt;&lt;P&gt;Group Product B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.4M&lt;/P&gt;&lt;P&gt;Group Product C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2M&lt;/P&gt;&lt;P&gt;None of the Above&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sets are not necessarily mutually exclusive, so a customer can be in Group Product A as well as Group Product B, if she happened to have bought both products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The groupings should also take into account any selections, e.g. time period selected. So if a user chose July 2014, then the groupings should reflect those who bought a product in July 2014. The final aim is to be able to compare Lifetime Values based on customer behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722204#M259237</guid>
      <dc:creator />
      <dc:date>2014-10-29T11:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722205#M259238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this in straight chart:&lt;/P&gt;&lt;P&gt;In Dimension:&lt;/P&gt;&lt;P&gt;1. Take your Product as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. aggr(Customer,Product)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;exp:&lt;/P&gt;&lt;P&gt;Sum(sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722205#M259238</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-29T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722206#M259239</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;You could create these groups in the script itself.&lt;/P&gt;&lt;P&gt;For eg: if you have Product and Customer in a table.&lt;/P&gt;&lt;P&gt;then while loading add a new field as below.&lt;/P&gt;&lt;P&gt;if(Product='A','Group A',if(Product='B','Group B',if(Product='C','Group C'))) as Group&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722206#M259239</guid>
      <dc:creator />
      <dc:date>2014-10-29T11:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722207#M259240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I can do that, because the groupings need to be arbitrary based on other selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722207#M259240</guid>
      <dc:creator />
      <dc:date>2014-10-29T16:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722208#M259241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share your app? That will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722208#M259241</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-29T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722209#M259242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying your solution as described above. For some reason, it's not giving me the answers I expect, but it seems to be on the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll create a sample application and share it which will illustrate the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722209#M259242</guid>
      <dc:creator />
      <dc:date>2014-10-29T16:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722210#M259243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would need to be applied to each expression, here's a sales example (total spend per customer - not just their spend on that product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales For customers who have purchase Product A:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Customer=P({$&amp;lt;Product={'Product A'}&amp;gt;})&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales For customers who have purchase Product B:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Customer=P({$&amp;lt;Product={'Product B'}&amp;gt;})&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722210#M259243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722211#M259244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The limitation with set analysis is that I have to explicitly set them up myself. In my example I put 3 groups but the reality is that there's thousands. Products are also added dynamically in the source system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to get to a solution using the P() type of expressions but hit a brick wall because of this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722211#M259244</guid>
      <dc:creator />
      <dc:date>2014-10-29T17:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722212#M259245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it can be achieved by using pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722212#M259245</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-29T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722213#M259246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the model app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722213#M259246</guid>
      <dc:creator />
      <dc:date>2014-10-29T17:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722214#M259247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your full data model include invoice ID or something that designates a total invoice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, please repost with that included. I may have a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722214#M259247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T18:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722215#M259248</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;A solution for 'row level formulas' is automatically generating all possible formulas and put them in a 'pick, match' formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have 3 products: A, B and C, you should use straight table with the product as dimension and the following formula as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pick(match(IslandProduct,'A','B','C'),sum({&amp;lt;Customer=P({&amp;lt;Product={'A'}&amp;gt;})&amp;gt;}Sales),sum({&amp;lt;Customer=P({&amp;lt;Product={'B'}&amp;gt;})&amp;gt;}Sales),sum({&amp;lt;Customer=P({&amp;lt;Product={'C'}&amp;gt;})&amp;gt;}Sales))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work for 3 products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, as you mentioned there are a lot more products. In this case you can generate the necessary formula by creating a variable vFormula with the following expression (including the single quotes when entering the formula) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'pick(match(IslandProduct,'&amp;amp;concat(chr(39)&amp;amp;IslandProduct&amp;amp;chr(39),',')&amp;amp;'),'&amp;amp;concat('sum({&amp;lt;Customer=P({&amp;lt;Product={'&amp;amp;chr(39)&amp;amp;IslandProduct&amp;amp;chr(39)&amp;amp;'}&amp;gt;})&amp;gt;}Sales)',',')&amp;amp;')'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then make the straight table with Product as dimension and =$(vFormula) as expression.&lt;/P&gt;&lt;P&gt;You get as result a table with the sum of sales of the customers that have the product of the row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution generates a long formula, so thousands of products might not work or work slow, but a hundred products should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachement you will find a test dashboard with 3 products (just add more customers and products to test more products, I tested it with over 20 products).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 20:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722215#M259248</guid>
      <dc:creator>mark_casselman</dc:creator>
      <dc:date>2014-10-29T20:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722216#M259249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why dont you use pivot chart?You can acheive it pretty easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 03:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722216#M259249</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-30T03:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722217#M259250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it doesn't. The actual data model is aggregated so transaction level information is thrown away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 09:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722217#M259250</guid>
      <dc:creator />
      <dc:date>2014-10-30T09:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722218#M259251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A pivot chart will not give me the results I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are sort of generated in 2 steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Get those customers who bought product A (or took promotion 1 or whatever).&lt;/P&gt;&lt;P&gt;2) What was their revenue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A customer can have bought product A as well as product B. In that case, he has to appear in both sets. A pivot chart will only tell me what the total sales on product A are no?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 09:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722218#M259251</guid>
      <dc:creator />
      <dc:date>2014-10-30T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722219#M259252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a look at your solution right now. It seems like this is the right one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 14:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722219#M259252</guid>
      <dc:creator />
      <dc:date>2014-10-30T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers based on their actions</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722220#M259253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance suffers when no selections on product are made. But when the user selects a few products, it's great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 14:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-based-on-their-actions/m-p/722220#M259253</guid>
      <dc:creator />
      <dc:date>2014-10-31T14:34:30Z</dc:date>
    </item>
  </channel>
</rss>

