<?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 Re: If/CASE statement in load with fields from two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-CASE-statement-in-load-with-fields-from-two-tables/m-p/951636#M327283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 08:50:19 GMT</pubDate>
    <dc:creator>matthewp</dc:creator>
    <dc:date>2015-12-07T08:50:19Z</dc:date>
    <item>
      <title>If/CASE statement in load with fields from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/If-CASE-statement-in-load-with-fields-from-two-tables/m-p/951635#M327282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a load statement below:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;TABA:&lt;/P&gt;&lt;P&gt;LOAD [Number] AS [ID Number],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Type] AS [AType]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(TABA) &lt;/P&gt;&lt;P&gt;TABB:&lt;/P&gt;&lt;P&gt;LOAD [Number] AS [ID Number],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Type] AS [BType]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;[\code]&lt;/P&gt;&lt;P&gt;Now this works fine, however i want to put in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE WHEN &lt;SPAN style="font-size: 13.3333px;"&gt;[AType] IS NULL THEN &lt;SPAN style="font-size: 13.3333px;"&gt;[BType] ELSE NULL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However i can get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TABA:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [Number] AS [ID Number],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Type] AS [AType]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LEFT JOIN(TABA) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TABB:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [Number] AS [ID Number],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Type] AS [BType],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(TABA.Type),TABB.Type,Null) AS [NewType]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TABA:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [Number] AS [ID Number],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Type] AS [AType]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LEFT JOIN(TABA) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TABB:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [Number] AS [ID Number],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Type] AS [BType],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(AType),BType,Null) AS [NewType]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 11:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-CASE-statement-in-load-with-fields-from-two-tables/m-p/951635#M327282</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2015-12-04T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: If/CASE statement in load with fields from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/If-CASE-statement-in-load-with-fields-from-two-tables/m-p/951636#M327283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 08:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-CASE-statement-in-load-with-fields-from-two-tables/m-p/951636#M327283</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2015-12-07T08:50:19Z</dc:date>
    </item>
  </channel>
</rss>

