<?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 Replace Null With Value In Left Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164653#M37281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the heads up. We use 32 bit desktop development environments and a 64 bit server so we may be having performance issues that aren't showing up in development.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 19:56:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-26T19:56:42Z</dc:date>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164647#M37275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably a simple question:&lt;/P&gt;&lt;P&gt;If I am left joining two tables as in below&lt;/P&gt;&lt;H4&gt;Load&lt;/H4&gt;&lt;H4&gt;item,&lt;/H4&gt;&lt;H4&gt;Resident Warehouse&lt;/H4&gt;&lt;H4&gt;Left Join (Warehouse) Load&lt;/H4&gt;&lt;H4&gt;item,&lt;/H4&gt;&lt;H4&gt;backlog&lt;/H4&gt;&lt;H4&gt;Resident backlogtbl&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make the backlog bring in zero to the warehouse table when the item does not exist in the backlogtbl? I would assume it should be someing like if(backlog = null(),0,backlog), but this doesn't seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 21:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164647#M37275</guid>
      <dc:creator />
      <dc:date>2010-05-25T21:09:13Z</dc:date>
    </item>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164648#M37276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to load the table again using this IF() statement, then drop the previous loaded table.&lt;/P&gt;&lt;P&gt;It work this way because you have to complete the load of a "temporary" table and then "Resident Load" from it to use the null() values generated by the join in an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 21:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164648#M37276</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-05-25T21:27:22Z</dc:date>
    </item>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164649#M37277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ITEM a unique key to both tables? If so, then using just a temporary field and another left join may (or may not) be more efficient than using a whole temporary table.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN (WAREHOUSE)&lt;BR /&gt;LOAD ITEM, BACKLOG as TEMPBACKLOG&lt;BR /&gt;RESIDENT BACKLOGTBL&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (WAREHOUSE)&lt;BR /&gt;LOAD ITEM, if(len(TEMPBACKLOG),TEMPBACKLOG,0) as BACKLOG&lt;BR /&gt;RESIDENT WAREHOUSE&lt;BR /&gt;;&lt;BR /&gt;DROP FIELD TEMPBACKLOG&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Also potentially worth testing is a mapping load:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Backlog]:&lt;BR /&gt;MAPPING LOAD ITEM, BACKLOG&lt;BR /&gt;RESIDENT BACKLOGTBL&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (WAREHOUSE)&lt;BR /&gt;LOAD ITEM, applymap('Backlog',ITEM,0) as BACKLOG&lt;BR /&gt;RESIDENT WAREHOUSE&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Even better is if you can do the mapping during the original load of the warehouse table instead of waiting until after it is loaded. Well, unless it messes up an optimized QVD load or something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 23:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164649#M37277</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-25T23:58:46Z</dc:date>
    </item>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164650#M37278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I performed the second resident load as you mentioned, but strangely the if(backlog = null(),0,backlog) function did not work. Instead, I reviewed the post by John Witherspoon who suggested if(len(backlog),backlog,0) and this worked. I find it interesting that the value stored when a left join does not find is not null(). Is this correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 14:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164650#M37278</guid>
      <dc:creator />
      <dc:date>2010-05-26T14:37:01Z</dc:date>
    </item>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164651#M37279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had an issue once where FIELD=null() wasn't returning true but IsNull(FIELD) would. I have also had situations where I have to use '' (thats two single quotes) to make an empty set. Those might end up working for you as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 15:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164651#M37279</guid>
      <dc:creator />
      <dc:date>2010-05-26T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164652#M37280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't checked recently, but isnull() didn't work very well in 64-bit versions of the product. So I always use len() to check for nulls, as it works in both 32 and 64 bit versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 17:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164652#M37280</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-26T17:01:10Z</dc:date>
    </item>
    <item>
      <title>Replace Null With Value In Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164653#M37281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the heads up. We use 32 bit desktop development environments and a 64 bit server so we may be having performance issues that aren't showing up in development.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 19:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Null-With-Value-In-Left-Join/m-p/164653#M37281</guid>
      <dc:creator />
      <dc:date>2010-05-26T19:56:42Z</dc:date>
    </item>
  </channel>
</rss>

