<?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: Group Customers (P function) Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591921#M479083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 00:36:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-17T00:36:33Z</dc:date>
    <item>
      <title>Group Customers (P function) Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591920#M479082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to bring all the customers who have discount today, then I need to match those customers who bought last year same month (it doesn't matter if the had discount). And see how many of them match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 180px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20" style="border-right-width: 0.5pt; border-right-style: solid; border-right-color: black; text-align: center;" width="180"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;Customers&lt;/TD&gt;&lt;TD class="xl69" style="text-align: center;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl70" style="text-align: center;"&gt;Discount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;C1&lt;/TD&gt;&lt;TD class="xl71" style="text-align: center;"&gt;10.000&lt;/TD&gt;&lt;TD class="xl70" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD class="xl71" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD class="xl70" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;C3&lt;/TD&gt;&lt;TD class="xl71" style="text-align: center;"&gt;15.000&lt;/TD&gt;&lt;TD class="xl70" style="text-align: center;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20" style="text-align: center;"&gt;C4&lt;/TD&gt;&lt;TD class="xl73" style="text-align: center;"&gt;4.000&lt;/TD&gt;&lt;TD class="xl74" style="text-align: center;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 180px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20" style="border-right-width: 0.5pt; border-right-style: solid; border-right-color: black; text-align: center;" width="180"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;Customers&lt;/TD&gt;&lt;TD class="xl69" style="text-align: center;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl70" style="text-align: center;"&gt;Discount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;C1&lt;/TD&gt;&lt;TD class="xl71" style="text-align: center;"&gt;10.000&lt;/TD&gt;&lt;TD class="xl75" style="text-align: center;"&gt;3.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;C2&lt;/TD&gt;&lt;TD class="xl71" style="text-align: center;"&gt;10.000&lt;/TD&gt;&lt;TD class="xl75" style="text-align: center;"&gt;2.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="text-align: center;"&gt;C3&lt;/TD&gt;&lt;TD class="xl71" style="text-align: center;"&gt;8.000&lt;/TD&gt;&lt;TD class="xl70" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD class="xl73" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD class="xl74" style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customers of 2014 are C1 and C2, and the customer that match is just C1... I need to get to that result. So I can compare all the sales of those customers with discount this year with last year if the did bought something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this set analysis to count the customers, and for the sales I just change the "count" to "sum" and "DISTINCT Cod_Cliente" for "Volumen":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Count({&amp;lt;Cod_Cliente = P({1&amp;lt;Año = {$(vMaxYear)}, Mes = {$(vMaxMonth)}, Flag_Descuento_Mainstream = {1}&amp;gt;} Cod_Cliente), Año = {$(vPriorYear)}, Mes = {$(vMaxMonth)}&amp;gt;} DISTINCT Cod_Cliente) &lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 23:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591920#M479082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-16T23:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group Customers (P function) Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591921#M479083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 00:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591921#M479083</guid>
      <dc:creator />
      <dc:date>2014-02-17T00:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Group Customers (P function) Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591922#M479084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know if what I'm doing is correct. Because I feel that I'm missing some logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 00:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-Customers-P-function-Set-Analysis/m-p/591922#M479084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-17T00:55:57Z</dc:date>
    </item>
  </channel>
</rss>

