<?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 Multiple Exclusions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231649#M83356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date format is stored as 2008-09-30, but I've tried both formats, usually the 30/09/2008 format works fine.&lt;/P&gt;&lt;P&gt;In the result I get all the 6000-0010 entries, regardless of the date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 22:38:16 GMT</pubDate>
    <dc:creator>agsearle</dc:creator>
    <dc:date>2009-11-04T22:38:16Z</dc:date>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231639#M83346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two sets of data, a series of numbers, and a series of dates, in two separate tables. The numbers are transaction numbers and the dates are the dates they were applied.&lt;/P&gt;&lt;P&gt;Numbers Example:&lt;BR /&gt;6000-0010&lt;BR /&gt;6000-0030&lt;BR /&gt;6200-0030&lt;BR /&gt;6200-0060&lt;/P&gt;&lt;P&gt;I need to exclude, in the script preferably, a selection of the numbers, eg 6000-0010 and 6200-0030, but only if their corresponding date is greater than 30/09/2008.&lt;/P&gt;&lt;P&gt;I've been trying for ages to get this done, but have failed miserably, can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 17:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231639#M83346</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231640#M83347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What is the source for your data (SQL, Excel, CVS)?&lt;/P&gt;&lt;P&gt;How do the two tables join (what is the common key between them)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 17:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231640#M83347</guid>
      <dc:creator />
      <dc:date>2009-11-04T17:52:49Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231641#M83348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The source of the data is from a QVD previously loaded from SAP.&lt;/P&gt;&lt;P&gt;Also my mistake there is no key, as the two fields are in the same table, sorry!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 18:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231641#M83348</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231642#M83349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the MATCH() function, I'm sure you could achieve this with two MATCH statements.&lt;/P&gt;&lt;P&gt;See the entry here, with more details at the bottom:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/blogs/qlikviewblogs/archive/2008/10/25/the-match-function.aspx"&gt;http://community.qlik.com/blogs/qlikviewblogs/archive/2008/10/25/the-match-function.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 18:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231642#M83349</guid>
      <dc:creator />
      <dc:date>2009-11-04T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231643#M83350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that familiar with MATCH. Also I want to exclude from selection, not match?&lt;/P&gt;&lt;P&gt;Tried to get it to work, but no success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 19:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231643#M83350</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T19:09:06Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231644#M83351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI maybe something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM table&lt;BR /&gt;WHERE (numbers NOT '6000-0010' AND DATE &amp;gt; '30/09/2008')&lt;BR /&gt;OR (numbers NOT '6000-0030' AND DATE &amp;gt; '30/09/2008')&lt;BR /&gt;OR (numbers NOT '6200-0030' AND DATE &amp;gt; '30/09/2008')&lt;BR /&gt;&lt;BR /&gt;OR (numbers NOT '6200-0060' AND DATE &amp;gt; '30/09/2008')&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 19:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231644#M83351</guid>
      <dc:creator />
      <dc:date>2009-11-04T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231645#M83352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry didn't like that, error message says it's expecting a '(' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231645#M83352</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T21:39:32Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231646#M83353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe NOT must before numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND NOT (numbers = '1234' and date &amp;gt; 'dateyouneed')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231646#M83353</guid>
      <dc:creator />
      <dc:date>2009-11-04T21:48:16Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231647#M83354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script didn't fail this time, but the result isn't right. This is what I have at the moment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;DFKKOPBW_TEMP_12:&lt;BR /&gt;LOAD Due_Date as Due_Date_12,&lt;BR /&gt; Main_Transaction&amp;amp;'-'&amp;amp;Subtransaction_For_Document_Item as Main_Sub_Trans_12,&lt;BR /&gt; CA as CA_12&lt;BR /&gt;FROM &lt;D&gt; (qvd)&lt;BR /&gt;WHERE EXISTS (CA_12,CA);&lt;BR /&gt;DFKKOPBW_12:&lt;BR /&gt;LOAD Due_Date_12,&lt;BR /&gt; Main_Sub_Trans_12,&lt;BR /&gt; CA_12&lt;BR /&gt;RESIDENT DFKKOPBW_TEMP_12&lt;BR /&gt;WHERE NOT (Main_Sub_Trans_12 = '6000-0010' AND Due_Date_12 &amp;gt; '30/09/2008');&lt;/D&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Essentially what I need is to exclude '6000-0010' from the result, but only if the Due Date is greater than '30/09/2008', as there are still some '6000-0010' entries where the Due Date is less than 30/09/2008 that I want to keep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 22:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231647#M83354</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T22:02:58Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231648#M83355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the date format you enter correct?&lt;/P&gt;&lt;P&gt;how is it stored in the QVD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What result do you get? Nothing from 6000-0010 or all or something in between?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 22:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231648#M83355</guid>
      <dc:creator />
      <dc:date>2009-11-04T22:22:00Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231649#M83356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date format is stored as 2008-09-30, but I've tried both formats, usually the 30/09/2008 format works fine.&lt;/P&gt;&lt;P&gt;In the result I get all the 6000-0010 entries, regardless of the date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 22:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231649#M83356</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T22:38:16Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231650#M83357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats odd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should work if you put WHERE NOT (Main_Sub_Trans_12 = '6000-0010' AND Due_Date_12 &amp;gt; '2008-09-30');&lt;/P&gt;&lt;P&gt;Maybe your dateformat is SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;Try to load only the&lt;/P&gt;&lt;P&gt;WHERE NOT Due_Date_12 &amp;gt; '2008-09-30');&lt;/P&gt;&lt;P&gt;See if that works. Then youll know its not your dateformat.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 22:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231650#M83357</guid>
      <dc:creator />
      <dc:date>2009-11-04T22:43:07Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231651#M83358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It didn't work with any date format, but I think I know where the problem might be.&lt;/P&gt;&lt;P&gt;As I wanted to join two fields together, I load them as a temporary table, then using RESIDENT reload the table trying to exclude as above. But I think it's still linking with the data in the temporary table, and hence all these solutions aren't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 23:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231651#M83358</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T23:15:03Z</dc:date>
    </item>
    <item>
      <title>Multiple Exclusions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231652#M83359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted!!!!! &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;Your suggestion works fine if I use it before the RESIDENT table, so I've removed this part and it works fine. Script now looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;DFKKOPBW_TEMP_12:&lt;BR /&gt;LOAD Due_Date as Due_Date_12,&lt;BR /&gt; Main_Transaction&amp;amp;'-'&amp;amp;Subtransaction_For_Document_Item as Main_Sub_Trans_12,&lt;BR /&gt; CA as CA_12&lt;BR /&gt;FROM &lt;D&gt; (qvd)&lt;BR /&gt;WHERE EXISTS (CA_12,CA)&lt;BR /&gt;AND NOT (Main_Transaction = '6000' AND Subtransaction_For_Document_Item = '0030' AND Due_Date &amp;gt; '30/09/2008');&lt;/D&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for all your help, couldn't have done it without you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 23:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exclusions/m-p/231652#M83359</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-11-04T23:32:09Z</dc:date>
    </item>
  </channel>
</rss>

