<?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: MINUS in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255787#M96809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am not sure your set algebra is quite right as by adding you minus querys to the same set modifyer you are essentially saying AND, but you are modifying it with not conditions, have you tried something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;({$- $&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Type]&lt;/SPAN&gt; = {'P'}, &lt;SPAN style="color: #800000;"&gt;[Policy Year]&lt;/SPAN&gt; = {'05', '06'}, &lt;SPAN style="color: #800000;"&gt;[Division Code]&lt;/SPAN&gt;={'&lt;SPAN class="515473706-18102011"&gt;A1&lt;/SPAN&gt;', '&lt;SPAN class="515473706-18102011"&gt;A2&lt;/SPAN&gt;'}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;so you are taking the entire "Minus" set and taking it from the current selection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;(that is if i understand you correctly!!! )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2011 11:27:55 GMT</pubDate>
    <dc:creator>sbaldwin</dc:creator>
    <dc:date>2011-10-18T11:27:55Z</dc:date>
    <item>
      <title>MINUS in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255786#M96808</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;Could some one help us in extracting the same output as that provided by MINUS keyword in Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;I have elaborated the issue with an example below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;Main Query o/p:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 427px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl24" height="17" style="border: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Division&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="107"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;D_ENTRY_DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;STRONG style="font-size: 10pt;"&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;02/05/2007&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;-40338.4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;02/05/2007&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;271453&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;23/05/2007&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;55.73&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;06&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;18/09/2008&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;-793.36&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;06&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;13/05/2009&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;810.39&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;30/11/2009&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;345.14&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;30/11/2009&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;-52.15&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;05&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;01/07/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000;"&gt;1.6&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;26/03/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000;"&gt;0.4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;05&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;26/03/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000;"&gt;1.6&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P align="left" dir="ltr"&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV align="left" dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Minus Query o/p:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="427"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl24" height="17" style="border: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Division&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="107"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;D_ENTRY_DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;STRONG style="font-size: 10pt; font-family: Arial;"&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333; font-family: Arial;"&gt;No rows returned based on the below conditions(there are no records with Type as 'P'):&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333; font-family: Arial;"&gt;Where Type = 'P' And Division in ('A1', 'A2') And Year In ('05','06')&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: Arial;"&gt;To get the similar output in QlikView, we have used the conditions of Minus Query as - (Exclusion) in &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Set Analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Type]&lt;/SPAN&gt; -= {'P'}, &lt;SPAN style="color: #800000;"&gt;[Policy Year]&lt;/SPAN&gt; -= {'05', '06'}, &lt;SPAN style="color: #800000;"&gt;[Division Code]&lt;/SPAN&gt;-={'&lt;SPAN class="515473706-18102011"&gt;A1&lt;/SPAN&gt;', '&lt;SPAN class="515473706-18102011"&gt;A2&lt;/SPAN&gt;'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Amount&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: Arial;"&gt;The sum results in zero for the last 3 rows above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 427px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl24" height="17" style="border: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Division&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="107"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;D_ENTRY_DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; border-bottom: windowtext 0.5pt solid;" width="64"&gt;&lt;STRONG style="font-size: 10pt; font-family: Arial;"&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;05&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;A3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;01/07/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000; font-family: Arial;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;A1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;26/03/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Arial;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="17" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;05&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;A2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;26/03/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Arial;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P align="left" dir="ltr"&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;Please advise if the conditions in the set analysis have been included correctly. Also, we need to exclude the rows that match with the above conditions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" dir="ltr"&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: Arial;"&gt;Regards,&lt;BR /&gt;&lt;SPAN class="515473706-18102011"&gt;Rajendra&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 07:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255786#M96808</guid>
      <dc:creator />
      <dc:date>2011-10-18T07:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: MINUS in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255787#M96809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am not sure your set algebra is quite right as by adding you minus querys to the same set modifyer you are essentially saying AND, but you are modifying it with not conditions, have you tried something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;({$- $&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Type]&lt;/SPAN&gt; = {'P'}, &lt;SPAN style="color: #800000;"&gt;[Policy Year]&lt;/SPAN&gt; = {'05', '06'}, &lt;SPAN style="color: #800000;"&gt;[Division Code]&lt;/SPAN&gt;={'&lt;SPAN class="515473706-18102011"&gt;A1&lt;/SPAN&gt;', '&lt;SPAN class="515473706-18102011"&gt;A2&lt;/SPAN&gt;'}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;so you are taking the entire "Minus" set and taking it from the current selection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;(that is if i understand you correctly!!! )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 11:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255787#M96809</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-10-18T11:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: MINUS in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255788#M96810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helped in the exclusion of the rows. However we are unable to find how to apply OR operator in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN class="828132610-20102011"&gt;Could you please &lt;SPAN class="234353710-20102011"&gt;help us in applying OR operator in Set analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN class="828132610-20102011"&gt;&lt;SPAN class="234353710-20102011"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN class="828132610-20102011"&gt;&lt;SPAN class="234353710-20102011"&gt;Example in SQL: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN class="828132610-20102011"&gt;&lt;SPAN class="234353710-20102011"&gt;WHERE Group = 'PR' AND DivisionCode IN &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;SPAN class="828132610-20102011"&gt;&lt;SPAN class="234353710-20102011"&gt;('A1', 'A2') AND (&lt;SPAN style="color: #ff0000;"&gt;Type&amp;nbsp; !=&amp;nbsp; 'Batch PNP'&lt;BR /&gt;OR&lt;/SPAN&gt;&lt;BR /&gt;(Type&amp;nbsp; =&amp;nbsp; 'Batch PNP'&lt;BR /&gt;AND&amp;nbsp; &lt;BR /&gt;Year IN ('05', '06')))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;This when converted in Set analysis as a negate would be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;({$- $&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Group]&lt;/SPAN&gt; = {'P'}, &lt;SPAN style="color: #800000;"&gt;[DivisionCode]&lt;/SPAN&gt;={'&lt;SPAN class="515473706-18102011"&gt;A1&lt;/SPAN&gt;', '&lt;SPAN class="515473706-18102011"&gt;A2&lt;/SPAN&gt;'},&lt;SPAN style="color: #800000;"&gt;[Year]&lt;/SPAN&gt; = {'05', '06'},&lt;SPAN style="color: #800000;"&gt;[Type]&lt;/SPAN&gt; = {'Batch PNP'}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;How to apply Type&amp;nbsp; !=&amp;nbsp; 'Batch PNP' and the OR condition?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 10:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255788#M96810</guid>
      <dc:creator />
      <dc:date>2011-10-20T10:57:23Z</dc:date>
    </item>
    <item>
      <title>MINUS in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255789#M96811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi in set analysis this is a union so you would need to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;({&amp;nbsp;&amp;nbsp;&amp;nbsp; ($- $&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Group]&lt;/SPAN&gt; = {'P'}, &lt;SPAN style="color: #800000;"&gt;[DivisionCode]&lt;/SPAN&gt;={'&lt;SPAN class="515473706-18102011"&gt;A1&lt;/SPAN&gt;', '&lt;SPAN class="515473706-18102011"&gt;A2&lt;/SPAN&gt;'},&lt;SPAN style="color: #800000;"&gt;[Year]&lt;/SPAN&gt; = {'05', '06'},&lt;SPAN style="color: #800000;"&gt;[Type]&lt;/SPAN&gt; = {'Batch PNP'}&amp;gt;)+$&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Type&amp;nbsp; -= { 'Batch PNP'&lt;/SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 11:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255789#M96811</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-10-20T11:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: MINUS in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255790#M96812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost there, but looks like I am missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mentioned that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;A AND (B OR C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Becomes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;(A AND B) OR (A AND C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Which becomes something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;{$&amp;lt;A, B&amp;gt; + {&amp;lt;A, C&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I apply the filter as advised by you, it is displaying data only based on the 1st filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula 1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({(1- $&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_HOW_MADE_PAYABLE_SDESC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; -= {'Batch PNP'}&amp;gt;)+$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_TOE_GROUP]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'PR'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_POLICY_YEAR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;={'05', '06', '07', '08', '09', '10'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_DIVISION_CODE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'E', 'F','O'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_TOE_MCD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'08', '10', '12', '14', '16'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_HOW_MADE_PAYABLE_SDESC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'Batch PNP'}&amp;gt;} AMOUNT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shows data only matching with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;'Batch PNP'&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({($- $&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_TOE_GROUP]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'PR'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_POLICY_YEAR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;={'05', '06', '07', '08', '09', '10'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_DIVISION_CODE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'E', 'F', 'O'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_TOE_MCD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'08', '10', '12', '14', '16'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_HOW_MADE_PAYABLE_SDESC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {'Batch PNP'}&amp;gt;)+$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;[V_HOW_MADE_PAYABLE_SDESC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; -= {'Batch PNP'}&amp;gt;} AMOUNT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not filter out the rows with 'Batch PNP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please advise the correct syntax that needs to be followed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 13:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255790#M96812</guid>
      <dc:creator />
      <dc:date>2011-10-20T13:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: MINUS in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255791#M96813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to updated that the syntax to be followed equilvent to the above SQL query is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({1-&lt;STRONG&gt;(&lt;/STRONG&gt;$&amp;lt;[Type] -= {'Batch PNP'}&amp;gt; + $&amp;lt;[Group] = {'PR'}, [Year]={'05', '06'},&lt;/P&gt;&lt;P&gt;[Division Code] = {'A1', 'A2'},&lt;/P&gt;&lt;P&gt;[Type] = {'Batch PNP'}&amp;gt;&lt;STRONG&gt;)&lt;/STRONG&gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 06:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MINUS-in-QlikView/m-p/255791#M96813</guid>
      <dc:creator />
      <dc:date>2011-10-21T06:41:35Z</dc:date>
    </item>
  </channel>
</rss>

