<?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 LOAD multiple where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378437#M1169883</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;I load a bunch of qvd's, and I want to restrict some data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source_table:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;MakeDate(Left(Fiscal_Period,4),Right(Fiscal_Period,3),) as Date&lt;/P&gt;&lt;P&gt;From Report_*.qvd(qvd) &lt;/P&gt;&lt;P&gt;WHERE ([Business segment]='DOWNSTREAM' OR [Business segment]='UPSTREAM'&lt;/P&gt;&lt;P&gt;OR [Business unit] &amp;lt;&amp;gt; 'TRADE' OR [Business unit] &amp;lt;&amp;gt; 'OTHER DOWNSTREAM'&lt;/P&gt;&lt;P&gt;OR [Business unit] &amp;lt;&amp;gt; 'PHOSPHATES' OR [Business unit] &amp;lt;&amp;gt; 'SPECIALITY JVS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't really do the trick, because I still see the unwanted data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are &amp;lt;&amp;gt; wrong tags?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 11:09:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-16T11:09:54Z</dc:date>
    <item>
      <title>LOAD multiple where</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378437#M1169883</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;I load a bunch of qvd's, and I want to restrict some data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source_table:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;MakeDate(Left(Fiscal_Period,4),Right(Fiscal_Period,3),) as Date&lt;/P&gt;&lt;P&gt;From Report_*.qvd(qvd) &lt;/P&gt;&lt;P&gt;WHERE ([Business segment]='DOWNSTREAM' OR [Business segment]='UPSTREAM'&lt;/P&gt;&lt;P&gt;OR [Business unit] &amp;lt;&amp;gt; 'TRADE' OR [Business unit] &amp;lt;&amp;gt; 'OTHER DOWNSTREAM'&lt;/P&gt;&lt;P&gt;OR [Business unit] &amp;lt;&amp;gt; 'PHOSPHATES' OR [Business unit] &amp;lt;&amp;gt; 'SPECIALITY JVS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't really do the trick, because I still see the unwanted data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are &amp;lt;&amp;gt; wrong tags?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 11:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378437#M1169883</guid>
      <dc:creator />
      <dc:date>2012-08-16T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD multiple where</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378438#M1169884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks OK to me.&amp;nbsp; Maybe try it on a single QVD file first?&amp;nbsp; And try removing the brackets around the group of OR statements - I don't think they're needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 11:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378438#M1169884</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-08-16T11:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD multiple where</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378439#M1169885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yea Jason I figured it out by myself, it's just a logical thinking issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you need to load what you do want to see with an OR&lt;/P&gt;&lt;P&gt;and with that selection in mind, you need to eliminate the things you don't want to see with AND's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise you don't get the right results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but increases loading time heavily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE ([Business segment]='DOWNSTREAM' OR [Business segment]='UPSTREAM')&lt;/P&gt;&lt;P&gt;AND [Business unit] &amp;lt;&amp;gt; 'TRADE' AND[Business unit] &amp;lt;&amp;gt; 'OTHER DOWNSTREAM'&lt;/P&gt;&lt;P&gt;AND[Business unit] &amp;lt;&amp;gt; 'PHOSPHATES' AND [Business unit] &amp;lt;&amp;gt; 'SPECIALITY JVS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe it would be better to load everything at once, and then make the selections you need from the resident table and drop the source table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 11:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378439#M1169885</guid>
      <dc:creator />
      <dc:date>2012-08-16T11:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD multiple where</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378440#M1169886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it wasn't for the new field you are creating (Date) you could use Exists() instead of WHERE and retain an optimized load.&amp;nbsp; Might be best to do this anyway - you can test what's faster:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Load the above using Exists(), with the Date&lt;/P&gt;&lt;P&gt;2. Load the above using Exists(), without the Date, then joining the Date afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need help with the script from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 11:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-multiple-where/m-p/378440#M1169886</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-08-16T11:52:00Z</dc:date>
    </item>
  </channel>
</rss>

