<?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: Left Join Nulls to Zeros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683501#M1057524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - really new to qlikview - is a resident load different to a script reload and how do I complete a resident load if yes???&amp;nbsp; Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 15:05:40 GMT</pubDate>
    <dc:creator>bazzaonline</dc:creator>
    <dc:date>2014-10-08T15:05:40Z</dc:date>
    <item>
      <title>Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683493#M1057516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am joining two sets of data using a left join, the second dataset is small therefore doesn't have the same number of records.&amp;nbsp; How do I input a 0 where there is no record?&amp;nbsp; For Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - A&lt;/P&gt;&lt;P&gt;2 - B&lt;/P&gt;&lt;P&gt;3 - C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - 1&lt;/P&gt;&lt;P&gt;2 - 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;becomes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - A - 1&lt;/P&gt;&lt;P&gt;2 - B - 2&lt;/P&gt;&lt;P&gt;3 - C - Null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - A - 1&lt;/P&gt;&lt;P&gt;2 - B - 2&lt;/P&gt;&lt;P&gt;3 - C - 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleas help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683493#M1057516</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-10-08T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683494#M1057517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in your load script resident load the final table and add to your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(Field3), 0, Field3) as Field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or add this to your Script before joining Table number 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullasValue Field3;&lt;/P&gt;&lt;P&gt;set NullValue='0';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683494#M1057517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-08T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683495#M1057518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initial:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;ID,Nm&lt;/P&gt;&lt;P&gt;1,A&lt;/P&gt;&lt;P&gt;2,B&lt;/P&gt;&lt;P&gt;3,C];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;ID,Fld&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load *,Alt(Fld,0) Resident Initial;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Initial;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683495#M1057518</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-08T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683496#M1057519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I can't get this to seem to work.&amp;nbsp; Do you have an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683496#M1057519</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-10-08T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683497#M1057520</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;see attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683497#M1057520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-08T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683498#M1057521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ejemplo espero te sirva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLA_X: &lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; campo1, campo2 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(TABLA_X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; campo1, campo3 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabla_final:&lt;/P&gt;&lt;P&gt;load campo1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; campo2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(campo3 &amp;lt;&amp;gt; null(),campo3,0) as campo3&lt;/P&gt;&lt;P&gt;Resident TABLA_X; &lt;/P&gt;&lt;P&gt;drop Table TABLA_X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683498#M1057521</guid>
      <dc:creator>jer_2011</dc:creator>
      <dc:date>2014-10-08T14:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683499#M1057522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Again,&amp;nbsp; This really helps.&amp;nbsp; The query is slightly more complicated than I originally thought, one more question if thats okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works when field1 (being joined against) is in both sets of data, its missing from the second dataset I still get a null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For Example&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 - A&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2 - B&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3 - C&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 - 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2 - Null&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;No Number 3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The currently becomes&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 - A - 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2 - B - 0 (thats changed and works)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3 - C - Null&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any ideas how I can get the 3 to become a '0' also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683499#M1057522</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-10-08T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683500#M1057523</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;no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply resident load the final table after joining the two tables. Nullasvalue will cause to "translate" every null in every listed field (you could also use * instead of applying nullasvalue to a specific field) in every load statement after the nullasvalue statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683500#M1057523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-08T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683501#M1057524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - really new to qlikview - is a resident load different to a script reload and how do I complete a resident load if yes???&amp;nbsp; Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683501#M1057524</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-10-08T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683502#M1057525</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;with resident load you load a previously loaded table. For example you load the table Employees.xlsx like&lt;/P&gt;&lt;P&gt;Employees:&lt;/P&gt;&lt;P&gt;load*&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Employees.xlsx (ooxml, embedded labels, Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can resident load it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;noconcatentae load*&lt;/P&gt;&lt;P&gt;Resident Employees;&lt;/P&gt;&lt;P&gt;drop table Employees;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Placing nullasvalue and setting Nullvalue to 0 before this statement will do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683502#M1057525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-08T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Nulls to Zeros</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683503#M1057526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a mapping load with 0 as third parameter in applymap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14128003791195807" jivemacro_uid="_14128003791195807"&gt;
&lt;P&gt;map:&lt;/P&gt;
&lt;P&gt;mapping load * inline [&lt;/P&gt;
&lt;P&gt;from,to&lt;/P&gt;
&lt;P&gt;1, 1&lt;/P&gt;
&lt;P&gt;2, 2&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;t:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; f1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; f2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; applymap('map', f1, 0) as f3;&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;f1,f2&lt;/P&gt;
&lt;P&gt;1,A&lt;/P&gt;
&lt;P&gt;2,B&lt;/P&gt;
&lt;P&gt;3,C&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 20:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Nulls-to-Zeros/m-p/683503#M1057526</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-08T20:33:21Z</dc:date>
    </item>
  </channel>
</rss>

