<?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 with 3 conditions from 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202100#M59926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the result of the mapping is new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 13:07:12 GMT</pubDate>
    <dc:creator>Michiel_QV_Fan</dc:creator>
    <dc:date>2009-09-30T13:07:12Z</dc:date>
    <item>
      <title>Load with 3 conditions from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202097#M59923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to develop a load script.&lt;/P&gt;&lt;P&gt;It has to do the following:&lt;/P&gt;&lt;P&gt;Load data from CATSDB. CATSDB has 2 field which are used for the key measurement Hours.&lt;/P&gt;&lt;P&gt;Load data from AUFK. AUFK has 1 field which is used for the key measurement Hours.&lt;/P&gt;&lt;P&gt;I tried this script:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; WORKDATE,&lt;BR /&gt; AWART,&lt;BR /&gt; applymap('AUFK_MAP', RAUFNR) as Ordersoort,&lt;BR /&gt; CATSHOURS as Uren2030,&lt;BR /&gt; PERNR,&lt;BR /&gt; RAUFNR as Ontvangen_order,&lt;BR /&gt; STATUS;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM CATSDB where AWART in ('Y800', 'Y801', 'Y802', 'Y803', 'Y820', 'Y821', 'Y900') and STATUS IN ('20','30');;&lt;/P&gt;&lt;P&gt;which works OK for the AWART and STATUS but not for the mapped value from line 3.&lt;/P&gt;&lt;P&gt;Unfortunately, this value is essential for the calculation.&lt;/P&gt;&lt;P&gt;Adding the mapping statement to the where clause doesn't work.&lt;/P&gt;&lt;P&gt;Anyone an idea to solve this?&lt;/P&gt;&lt;P&gt;Thanks! [:)]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 19:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202097#M59923</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2009-09-29T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Load with 3 conditions from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202098#M59924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can't you filter by RAUFNR instead of the mapped result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 23:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202098#M59924</guid>
      <dc:creator />
      <dc:date>2009-09-29T23:28:57Z</dc:date>
    </item>
    <item>
      <title>Load with 3 conditions from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202099#M59925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 It is not clear if you have a map here, and if it is created correctly. Your LOAD statement assumes that there is script preceeding it:&lt;BR /&gt;AUFK_MAP:&lt;BR /&gt;MAPPING LOAD DISTINCT&lt;BR /&gt; Field1,&lt;BR /&gt; Field2;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;...&lt;BR /&gt;FROM AUFK.&lt;/P&gt;&lt;P&gt;2. Applymap can work only in LOAD, but not in SELECT:&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;WHERE ...applymap()...;&lt;BR /&gt;SQL SELECT...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 02:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202099#M59925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-30T02:02:19Z</dc:date>
    </item>
    <item>
      <title>Load with 3 conditions from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202100#M59926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the result of the mapping is new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 13:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202100#M59926</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2009-09-30T13:07:12Z</dc:date>
    </item>
    <item>
      <title>Load with 3 conditions from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202101#M59927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Michael Solomovich wrote:&lt;BR /&gt;1 It is not clear if you have a map here, and if it is created correctly. Your LOAD statement assumes that there is script preceeding it:&lt;BR /&gt;AUFK_MAP:&lt;BR /&gt;MAPPING LOAD DISTINCT&lt;BR /&gt; Field1,&lt;BR /&gt; Field2;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;...&lt;BR /&gt;FROM AUFK.&lt;BR /&gt;2. Applymap can work only in LOAD, but not in SELECT:&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;WHERE ...applymap()...;&lt;BR /&gt;SQL SELECT... &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. Unfortunately mapping doesn't work in Select..... I have to find another way.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 13:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-with-3-conditions-from-2-tables/m-p/202101#M59927</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2009-09-30T13:09:49Z</dc:date>
    </item>
  </channel>
</rss>

