<?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: Inverse Selection or Where Not Exists??? Please Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934383#M643638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(count(ItemCode)=2, 1), ItemCode))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 01:50:42 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-12-02T01:50:42Z</dc:date>
    <item>
      <title>Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934382#M643637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple as it sounds, I am very confused over this and don't really know what I am doing. Please consider the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ItemCode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EventCode&lt;/P&gt;&lt;P&gt;001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start&lt;/P&gt;&lt;P&gt;001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finish&lt;/P&gt;&lt;P&gt;002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start&lt;/P&gt;&lt;P&gt;002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finish&lt;/P&gt;&lt;P&gt;003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finish&lt;/P&gt;&lt;P&gt;004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know the number of Item codes that have a finished Event code which have also got a start event code as well, in this case the number would be 2, but I need the formula...help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 00:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934382#M643637</guid>
      <dc:creator />
      <dc:date>2015-12-02T00:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934383#M643638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(count(ItemCode)=2, 1), ItemCode))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 01:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934383#M643638</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-02T01:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934384#M643639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if this maybe slightly more resilient (it ensures that an individual item code has both , and only, Start and FInish as an Event Code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; if(aggr(concat(DISTINCT EventCode,'-',EventCode),ItemCode)='Finish-Start',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A script / data model solution would also make either one more scalable at higher data volume.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 02:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934384#M643639</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-12-02T02:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934385#M643640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data can contain more than one Start or more than one Finish EventCode for an ItemCode, you can use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;ItemCode=p({&amp;lt;EventCode={'Start'}&amp;gt;} ItemCode)&amp;gt;*&amp;lt;ItemCode=p({&amp;lt;EventCode={'Finish'}&amp;gt;} ItemCode)&amp;gt;}DISTINCT ItemCode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will count all the ItemCode that have, at least, one Start EventCode and, at least, one Finish EventCode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 02:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934385#M643640</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2015-12-02T02:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934386#M643641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should consider both 'Finish-Start' and 'Start-Finish', since the events can be in any order in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 02:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934386#M643641</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2015-12-02T02:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934387#M643642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes a pre-calculation on script-level makes the gui-expressions easier and also the performance would be better because the aggr-functions are quite RAM expensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 02:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934387#M643642</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-02T02:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse Selection or Where Not Exists??? Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934388#M643643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its good to be thinking of all possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this sitation, the 3rd parameter of the concat() function defines the sort-weight. It should cause an alphabetical order based on using 'ItemCode' as the argument.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 02:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inverse-Selection-or-Where-Not-Exists-Please-Help/m-p/934388#M643643</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-12-02T02:29:47Z</dc:date>
    </item>
  </channel>
</rss>

