<?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 Lost customers that returns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380229#M141828</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;I would like to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show the customers which bought product A in period 1 and did not buy product A in period 2, and bought product A in period 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can that be done &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;in ver 10&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it easier in ver 11, and in that case why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 06:36:15 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2012-08-23T06:36:15Z</dc:date>
    <item>
      <title>Lost customers that returns</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380229#M141828</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;I would like to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show the customers which bought product A in period 1 and did not buy product A in period 2, and bought product A in period 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can that be done &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;in ver 10&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it easier in ver 11, and in that case why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 06:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380229#M141828</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-08-23T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lost customers that returns</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380230#M141829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your data may look like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Customer, Period, Sales&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A, 1, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A, 2, 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A, 3, 30&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B, 1, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B, 3, 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C, 1, 30&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C, 2, 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;D, 2, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;D, 3, 05&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;E, 1, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;F, 2, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;G, 4, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;]; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this should work as e.g. a field expression in a list box in versions 10 and 11 (not sure if there is a better approach in QV11):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;only(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;Customer = e({&amp;lt;Period={2}&amp;gt;})*{"=sum({&amp;lt;Period = {1}&amp;gt;}Sales) and sum({&amp;lt;Period = {3}&amp;gt;}Sales)"}&amp;nbsp;&amp;nbsp; &amp;gt;} &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,Customer)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 09:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380230#M141829</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-23T09:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lost customers that returns</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380231#M141830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl&lt;/P&gt;&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression works,&lt;/P&gt;&lt;P&gt;and I found an alternative that also gives the same results:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Customer = e({&amp;lt;Period={2}&amp;gt;})*p({&amp;lt;Period={1}&amp;gt;})*p({&amp;lt;Period={3}&amp;gt;})&amp;gt;} Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great so far!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the periods 1, 2, 3 should be selectable by the end user,&lt;/P&gt;&lt;P&gt;and I did it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facts:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Customer, Period, Sales&lt;/P&gt;&lt;P&gt;A, 1, 10&lt;/P&gt;&lt;P&gt;A, 2, 20&lt;/P&gt;&lt;P&gt;A, 3, 30&lt;/P&gt;&lt;P&gt;B, 1, 10&lt;/P&gt;&lt;P&gt;B, 3, 20&lt;/P&gt;&lt;P&gt;C, 1, 30&lt;/P&gt;&lt;P&gt;C, 2, 20&lt;/P&gt;&lt;P&gt;D, 2, 10&lt;/P&gt;&lt;P&gt;D, 3, 05&lt;/P&gt;&lt;P&gt;E, 1, 10&lt;/P&gt;&lt;P&gt;F, 2, 10&lt;/P&gt;&lt;P&gt;G, 4, 10&lt;/P&gt;&lt;P&gt;H, 1, 10&lt;/P&gt;&lt;P&gt;H, 3, 20&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P2:&lt;/P&gt;&lt;P&gt;LOAD Distinct Period As P2&lt;/P&gt;&lt;P&gt;Resident Facts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P3:&lt;/P&gt;&lt;P&gt;LOAD P2 As P3&lt;/P&gt;&lt;P&gt;Resident P2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expression:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Customer = e({&amp;lt;Period=P2&amp;gt;})*p({&amp;lt;Period=P3&amp;gt;})&amp;gt;}Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting in Period, P2 and P3 now gets my desired results&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 10:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-customers-that-returns/m-p/380231#M141830</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-08-23T10:07:04Z</dc:date>
    </item>
  </channel>
</rss>

