<?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: P() and E() set analysis between dimension values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680415#M246708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification. If let's say in 201403 there were 5 customers. 2 dropped out in 201404 but at the same time 2 new came in - even though the count of customers is the same, you expect the number of new customers to be 2, is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 11:18:59 GMT</pubDate>
    <dc:creator>simondachstr</dc:creator>
    <dc:date>2014-10-08T11:18:59Z</dc:date>
    <item>
      <title>P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680412#M246705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello good folks of the net,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculation that I am struggling with. Is anyone able to offer some insight?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fairly straightforward report requirement where I want to count the number of customers in a period. I also need to know how many are new and how many have been lost. I have tried using e() set analysis to exclude customers who exist in the previous period but I cant seem to find the correct syntax, if indeed that is the correct way to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample document with the data boiled down to the bare minimum. As an example, Account 10006 and 10007 appeared in 201302 but not in 201401, so the new count for 201402 should be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680412#M246705</guid>
      <dc:creator />
      <dc:date>2014-10-08T10:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680413#M246706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you be more specific: You want to count the number of customers in a period. What period? How do you determine the new and how do you determine the lost ones?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, I don't see year month 2013 02 in your sample data set - am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680413#M246706</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-10-08T10:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680414#M246707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that was a typo. It should have been 201402, not 201302. I would like to count customers who are new in a period, i.e. they didnt appear in the previous period. In my example above, 5 customers traded in 201401. In 201402 another 2 traded (10006, 10007) so the total number of customers is 7 and the number of new is 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="directory_example.PNG.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/68498_directory_example.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680414#M246707</guid>
      <dc:creator />
      <dc:date>2014-10-08T10:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680415#M246708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification. If let's say in 201403 there were 5 customers. 2 dropped out in 201404 but at the same time 2 new came in - even though the count of customers is the same, you expect the number of new customers to be 2, is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680415#M246708</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-10-08T11:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680416#M246709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. The final table should look something like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD align="right" width="64"&gt;201401&lt;/TD&gt;&lt;TD align="right" width="64"&gt;201402&lt;/TD&gt;&lt;TD align="right" width="64"&gt;201403&lt;/TD&gt;&lt;TD align="right" width="64"&gt;201404&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Active&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;New&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Lost&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;New:&lt;/TD&gt;&lt;TD&gt;New:&lt;/TD&gt;&lt;TD&gt;New:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10006&lt;/TD&gt;&lt;TD align="right"&gt;10008&lt;/TD&gt;&lt;TD align="right"&gt;10004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10007&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Lost:&lt;/TD&gt;&lt;TD&gt;Lost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10004&lt;/TD&gt;&lt;TD align="right"&gt;10002&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I've included the detail of what makes up each new/lost calculation below for clarity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680416#M246709</guid>
      <dc:creator />
      <dc:date>2014-10-08T11:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680417#M246710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd be just as interested to hear if anyone just thinks this isnt possible, as well as to hear a solution. If the consensus is that its not possible then I can carry on and create it in the data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680417#M246710</guid>
      <dc:creator />
      <dc:date>2014-10-09T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: P() and E() set analysis between dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680418#M246711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Watson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD Order_No as Account, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(Order_No) &amp;lt;&amp;gt; Order_No, 'New', 'Old') AS Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;ORDER BY Account, Period;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and expression for New as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Flag={'New'}&amp;gt;}Distinct Account)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 12:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-and-E-set-analysis-between-dimension-values/m-p/680418#M246711</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-09T12:35:39Z</dc:date>
    </item>
  </channel>
</rss>

