<?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 Set Analysis - Rolling data to different levels in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-data-to-different-levels/m-p/488220#M1129985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have item level data that I need to analysis at both customer and transaction level.&lt;/P&gt;&lt;P&gt;I need to identify the number of customers in three different groups:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; The customers just buying the brand in the current selection and their spend.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; The customers buying the brand in the current selection and other brands as well.&amp;nbsp; Split by the spend on the brand and non-brand sales.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; The customers not buying the brand in the current selection and their spend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to use set analysis to do this, but can't seem to get my head around the correct formula.&amp;nbsp; Using the possible select seems a necessary step, but I am not sure whether using the exclusion of the possible select would work (e.g brand=e({$}brand) ) or whether something along this lines is better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;cid=p({$ &amp;lt;brand=&amp;gt;-&amp;lt;brand=p({$}brand)&amp;gt;} [cid]) &amp;gt;} sale_price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data has the following fields on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cid = customer id&lt;/P&gt;&lt;P&gt;basket_urn = transaction identifier&lt;/P&gt;&lt;P&gt;sale_price = cost of item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 17:54:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-25T17:54:06Z</dc:date>
    <item>
      <title>Set Analysis - Rolling data to different levels</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-data-to-different-levels/m-p/488220#M1129985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have item level data that I need to analysis at both customer and transaction level.&lt;/P&gt;&lt;P&gt;I need to identify the number of customers in three different groups:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; The customers just buying the brand in the current selection and their spend.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; The customers buying the brand in the current selection and other brands as well.&amp;nbsp; Split by the spend on the brand and non-brand sales.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; The customers not buying the brand in the current selection and their spend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to use set analysis to do this, but can't seem to get my head around the correct formula.&amp;nbsp; Using the possible select seems a necessary step, but I am not sure whether using the exclusion of the possible select would work (e.g brand=e({$}brand) ) or whether something along this lines is better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;cid=p({$ &amp;lt;brand=&amp;gt;-&amp;lt;brand=p({$}brand)&amp;gt;} [cid]) &amp;gt;} sale_price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data has the following fields on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cid = customer id&lt;/P&gt;&lt;P&gt;basket_urn = transaction identifier&lt;/P&gt;&lt;P&gt;sale_price = cost of item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-data-to-different-levels/m-p/488220#M1129985</guid>
      <dc:creator />
      <dc:date>2013-11-25T17:54:06Z</dc:date>
    </item>
  </channel>
</rss>

