<?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 if condition fields from 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-condition-fields-from-2-tables/m-p/640153#M1087999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have an if condition that contains fields from 2 different tables so I tried to concatenate the tables and when run, I received error message saying the field is not found. This is my current script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVENT:&lt;/P&gt;&lt;P&gt;LOAD *, IF(INVENTLOCATION='BTSTORE',REORDERPOINT) AS 'ROP(BT)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.(OTHER FIELDS)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ORDERQTY&lt;/P&gt;&lt;P&gt;INVENTLOCATION&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FROM &amp;lt;FILENAME&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE(INVENT)&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;REORDERPOINT&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FROM &amp;lt;FILENAME&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to create a column that reads from 2 tables.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 03:19:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-05T03:19:06Z</dc:date>
    <item>
      <title>if condition fields from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-fields-from-2-tables/m-p/640153#M1087999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have an if condition that contains fields from 2 different tables so I tried to concatenate the tables and when run, I received error message saying the field is not found. This is my current script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVENT:&lt;/P&gt;&lt;P&gt;LOAD *, IF(INVENTLOCATION='BTSTORE',REORDERPOINT) AS 'ROP(BT)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.(OTHER FIELDS)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ORDERQTY&lt;/P&gt;&lt;P&gt;INVENTLOCATION&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FROM &amp;lt;FILENAME&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE(INVENT)&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;REORDERPOINT&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FROM &amp;lt;FILENAME&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to create a column that reads from 2 tables.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 03:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-fields-from-2-tables/m-p/640153#M1087999</guid>
      <dc:creator />
      <dc:date>2014-06-05T03:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: if condition fields from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-fields-from-2-tables/m-p/640154#M1088000</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;Make first that concatenation and after that load if-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invent:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(.... ) as 'ROP(BT)'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;SQL Select * From Filename1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;SQL Select * From Filename2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are doing if, you dont have required fields at that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Miikka&lt;/P&gt;&lt;P&gt;Climber Finland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-fields-from-2-tables/m-p/640154#M1088000</guid>
      <dc:creator>miikkaqlick</dc:creator>
      <dc:date>2014-09-12T09:33:30Z</dc:date>
    </item>
  </channel>
</rss>

