<?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: How to implement SQL NOT IN in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746351#M266373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hi Agnivesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In UI : The E() operator&lt;EM&gt; (E for Exclude)&lt;/EM&gt; would be what you need to use in set analysis to exclude subsets of Data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;=Count({&amp;lt;[Customer Name]=e({&amp;lt;[Call Opened - Date/Time]={'&amp;gt;=$(vBeginTime)&amp;lt;=$(vEndTime)'}&amp;gt;}[Customer Name])&amp;gt;}[Customer ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Scenarios to use ‘Not in’ keyword in script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;where not(match("Customer",'Jane','Ann','Fiona'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;(OR)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;where Customer not in('Jane','Ann','Fiona');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Qlikview recognizes Match keyword whereas SQL doesn’t.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;So use above scenarios as required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Neetha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Nov 2014 10:16:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-30T10:16:48Z</dc:date>
    <item>
      <title>How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746350#M266372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to implement SQL NOT IN in set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 06:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746350#M266372</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2014-11-30T06:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746351#M266373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hi Agnivesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In UI : The E() operator&lt;EM&gt; (E for Exclude)&lt;/EM&gt; would be what you need to use in set analysis to exclude subsets of Data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;=Count({&amp;lt;[Customer Name]=e({&amp;lt;[Call Opened - Date/Time]={'&amp;gt;=$(vBeginTime)&amp;lt;=$(vEndTime)'}&amp;gt;}[Customer Name])&amp;gt;}[Customer ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Scenarios to use ‘Not in’ keyword in script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;where not(match("Customer",'Jane','Ann','Fiona'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;(OR)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;where Customer not in('Jane','Ann','Fiona');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Qlikview recognizes Match keyword whereas SQL doesn’t.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;So use above scenarios as required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Neetha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 10:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746351#M266373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T10:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746352#M266374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use -= to implement 'Not in' in Set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Country&lt;STRONG&gt;-=&lt;/STRONG&gt;{'INDIA','US'}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 12:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746352#M266374</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-30T12:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746353#M266375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;STRONG&gt; -= {'USA','INDIA','JAPAN'} you can use in set analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 12:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746353#M266375</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-11-30T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746354#M266376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to convert my sql query in set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum(Cost) from Cost_Table where ID in (Select ID from Person_Table where EMP_ID in (select EMP_ID from Employee_Table where Zone_ID=12))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 13:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746354#M266376</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2014-11-30T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746355#M266377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to convert my sql query in set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum(Cost) from Cost_Table where ID in (Select ID from Person_Table where EMP_ID in (select EMP_ID from Employee_Table where Zone_ID=12))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 13:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746355#M266377</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2014-11-30T13:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to implement SQL NOT IN in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746356#M266378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;Zone_ID={12}&amp;gt;}Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 05:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-SQL-NOT-IN-in-set-analysis/m-p/746356#M266378</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-01T05:56:35Z</dc:date>
    </item>
  </channel>
</rss>

