<?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: Reload only one field in script table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084681#M639089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most more efficient then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(FieldName), DefaultValue, FieldName) will be If(len(trim(FieldName))=0, DefaultValue, FieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's easy to use but you will need to know where NULL could be happen and apply it to each single field. Another method by merging tables might be to use mapping with applymap() which avoids potential problems of join-approaches and which could have a default-value by no matchings - but it won't cover the duplication/reduction of records from inner/outer-joins which are more uncommon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further approaches to handle NULL are the use of variables like NullAsValue, NullDisplay and NullValue. The best overview to all these methods could you find here: &lt;A href="https://community.qlik.com/docs/DOC-3155"&gt;NULL handling in QlikView&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 01:04:50 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-03-17T01:04:50Z</dc:date>
    <item>
      <title>Reload only one field in script table?</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084678#M639086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;in the script,&lt;/SPAN&gt; to reload only one field of a table that has already been alimented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I want to have all the rows from SOURCE1 and from SOURCE2, and match them if possible (if not, leave the field Batch_Type or Batch_Ext_Code empty).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BATCH:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Batch_Id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Batch_Type&lt;/P&gt;&lt;P&gt;from SOURCE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Batch_Id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Batch_Ext_Code&lt;/P&gt;&lt;P&gt;from SOURCE2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that load, I would like to replace the null values in Batch_Type field by 'Not Defined', without having to reload the entire content of the table into another table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do so? &lt;/P&gt;&lt;P&gt;If you want more details, it's because I need afterwards to remove some rows in some parts of the UI thanks to set analyses based on some values of Batch_Type (Batch_Type -= {xxx}), and unfortunately this also removes the rows with null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084678#M639086</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-03-16T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reload only one field in script table?</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084679#M639087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here: &lt;A href="http://qlikviewcookbook.com/2013/01/filling-default-values-using-mapping/" title="http://qlikviewcookbook.com/2013/01/filling-default-values-using-mapping/"&gt;Filling Default Values Using Mapping | Qlikview Cookbook&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084679#M639087</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-16T11:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reload only one field in script table?</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084680#M639088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus. Is that the only way to do it? It is quite similar to what I did (except I used If(IsNull(FieldName), DefaultValue, FieldName) instead of using the 'MAP' statements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though it's the only thing I could think of, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;reloading the table twice by making a copy seemed odd to me, so I was thinking there might be another way (I'm quite new to Qlikview so I may not have all the reflexes!).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084680#M639088</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-03-16T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reload only one field in script table?</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084681#M639089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most more efficient then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(FieldName), DefaultValue, FieldName) will be If(len(trim(FieldName))=0, DefaultValue, FieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's easy to use but you will need to know where NULL could be happen and apply it to each single field. Another method by merging tables might be to use mapping with applymap() which avoids potential problems of join-approaches and which could have a default-value by no matchings - but it won't cover the duplication/reduction of records from inner/outer-joins which are more uncommon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further approaches to handle NULL are the use of variables like NullAsValue, NullDisplay and NullValue. The best overview to all these methods could you find here: &lt;A href="https://community.qlik.com/docs/DOC-3155"&gt;NULL handling in QlikView&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 01:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084681#M639089</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-17T01:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reload only one field in script table?</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084682#M639090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Marcus, I will do with these solutions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 09:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-only-one-field-in-script-table/m-p/1084682#M639090</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-03-17T09:57:44Z</dc:date>
    </item>
  </channel>
</rss>

