<?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 Referencing columns from another table in a join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193945#M55031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my qlikview script I can't figure out how to reference a column from Table1 in the load for Table2 . Table1 is from a file and Table2 is in a database:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Name ID Job&lt;/P&gt;&lt;P&gt;Alex 1 Technology&lt;/P&gt;&lt;P&gt;Sam 2 Bank&lt;/P&gt;&lt;P&gt;Jeff 3 Engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID JobDetail&lt;/P&gt;&lt;P&gt;1 ApplicationDevelopemnt&lt;/P&gt;&lt;P&gt;3 Structural&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableMain:&lt;/P&gt;&lt;P&gt;Load Name, ID, Job from file1.csv&lt;/P&gt;&lt;P&gt;Left Join(TableMain)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If(isnull(JobDetail),Job,JobDetail) as JobDetail;&lt;/P&gt;&lt;P&gt;From SQL Select * from Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me an error saying Field not Found &amp;lt;Job&amp;gt;. I am guessing because job is from table1 and i am trying to use it in a load for table2. I am guessing I can load everything first into a temp table then reprocess that but that seems inefficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 21:32:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-18T21:32:18Z</dc:date>
    <item>
      <title>Referencing columns from another table in a join</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193945#M55031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my qlikview script I can't figure out how to reference a column from Table1 in the load for Table2 . Table1 is from a file and Table2 is in a database:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Name ID Job&lt;/P&gt;&lt;P&gt;Alex 1 Technology&lt;/P&gt;&lt;P&gt;Sam 2 Bank&lt;/P&gt;&lt;P&gt;Jeff 3 Engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID JobDetail&lt;/P&gt;&lt;P&gt;1 ApplicationDevelopemnt&lt;/P&gt;&lt;P&gt;3 Structural&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableMain:&lt;/P&gt;&lt;P&gt;Load Name, ID, Job from file1.csv&lt;/P&gt;&lt;P&gt;Left Join(TableMain)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If(isnull(JobDetail),Job,JobDetail) as JobDetail;&lt;/P&gt;&lt;P&gt;From SQL Select * from Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me an error saying Field not Found &amp;lt;Job&amp;gt;. I am guessing because job is from table1 and i am trying to use it in a load for table2. I am guessing I can load everything first into a temp table then reprocess that but that seems inefficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193945#M55031</guid>
      <dc:creator />
      <dc:date>2010-11-18T21:32:18Z</dc:date>
    </item>
    <item>
      <title>Referencing columns from another table in a join</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193946#M55032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually you join the tables first and then use the resident command to call the joined table again and do logic that needs columns from both tables.&lt;/P&gt;&lt;P&gt;But in your case you one of the tables has just 2 columns so you can do a mapping and save time. Look at the example below.&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;Mapping Load ID,&lt;BR /&gt; JobDetail;&lt;BR /&gt;From SQL Select * from Table2;&lt;/P&gt;&lt;P&gt;TableMain:&lt;BR /&gt;Load Name,&lt;BR /&gt; ID,&lt;BR /&gt; Job,&lt;BR /&gt; If(isnull(applymap('Table2',ID,null())),Job,applymap('Table2',ID,null())) as Job Detail&lt;BR /&gt;from file1.csv&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193946#M55032</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-18T21:43:51Z</dc:date>
    </item>
    <item>
      <title>Referencing columns from another table in a join</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193947#M55033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh excellent. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-columns-from-another-table-in-a-join/m-p/193947#M55033</guid>
      <dc:creator />
      <dc:date>2010-11-18T21:56:16Z</dc:date>
    </item>
  </channel>
</rss>

