<?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 transform Null value to value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168775#M1287111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coalesce() will only work with MSSQL.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;load if(Isnull(costcenter),'4000',costcenter)&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2009 17:21:27 GMT</pubDate>
    <dc:creator>biester</dc:creator>
    <dc:date>2009-10-14T17:21:27Z</dc:date>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168772#M1287108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got a problem. Want to give al empty values in the field costcenter the value 4000.&lt;/P&gt;&lt;P&gt;My query won't work. What's wrong? I still got empty values with production on it.&lt;/P&gt;&lt;P&gt;Load if(costcenter ='', '4000',costcenter) as costcenter1;&lt;BR /&gt;sql select *&lt;BR /&gt;from table1;&lt;/P&gt;&lt;P&gt;sql select&lt;BR /&gt;production,&lt;BR /&gt;costcenter as costcenter1&lt;BR /&gt;from table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168772#M1287108</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168773#M1287109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it:&lt;/P&gt;&lt;P&gt;sql select&lt;BR /&gt;production,&lt;BR /&gt;&lt;STRONG&gt;Coalesce(costcenter,'')&lt;/STRONG&gt; as costcenter1&lt;BR /&gt;from table1;&lt;/P&gt;&lt;P&gt;Ciao!&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 16:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168773#M1287109</guid>
      <dc:creator />
      <dc:date>2009-10-14T16:05:26Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168774#M1287110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this won't work, any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 16:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168774#M1287110</guid>
      <dc:creator />
      <dc:date>2009-10-14T16:26:36Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168775#M1287111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coalesce() will only work with MSSQL.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;load if(Isnull(costcenter),'4000',costcenter)&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 17:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168775#M1287111</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-14T17:21:27Z</dc:date>
    </item>
    <item>
      <title>AW:Re: transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168776#M1287112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be aware of different null value handling on 32 and 64 Bit QV Systems!&lt;/P&gt;&lt;P&gt;Load ....&lt;/P&gt;&lt;P&gt;if (isnull(costcenter), '4000', if(costcenter = '', '4000', costcenter) as costcenter&lt;/P&gt;&lt;P&gt;;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greedings Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 17:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168776#M1287112</guid>
      <dc:creator />
      <dc:date>2009-10-14T17:38:10Z</dc:date>
    </item>
    <item>
      <title>AW:Re: transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168777#M1287113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Boris,&lt;/P&gt;&lt;P&gt;what do you have in mind? In how far is there a difference? I tested my example both on a 32bit machine with 32bit QV.exe and a 64bit machine with 64bit Qv.exe, both with OLEDB and ODBC (connecting to a MSSQL), and in all of these scenarios the simple if(isnull(fld),'N/A',fld) as fld worked.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 17:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168777#M1287113</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-14T17:56:13Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168778#M1287114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This information is taken from the wiki:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/wikis/qlikview-wiki/isnull-difference-in-qv-64bit-and-32bit.aspx"&gt;http://community.qlik.com/wikis/qlikview-wiki/isnull-difference-in-qv-64bit-and-32bit.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I never ran personally into this, but I keept it in mind as a possible source of missbehaviour...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greeding Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168778#M1287114</guid>
      <dc:creator />
      <dc:date>2009-10-14T18:21:09Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168779#M1287115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;P&gt;load if(Isnull(costcenter),'4000',costcenter) as costcenterabroad&lt;BR /&gt;from table1 ;&lt;/P&gt;&lt;P&gt;sql select&lt;BR /&gt;&lt;BR /&gt;production,&lt;BR /&gt;costcenter as costcenterabroad&lt;BR /&gt;from table1 ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately it does not work .I still get no production for costcenter 4000 but when I select the empty field, there is a lot of production on it. So the empty costcenter still apears with production data instead of shifting it to 4000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168779#M1287115</guid>
      <dc:creator />
      <dc:date>2009-10-14T18:28:45Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168780#M1287116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be that, as in your case if isnull() does not work, the value simply isn't NULL and it's just an empty string? An empty and NULL are of course two different things.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168780#M1287116</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-14T18:34:32Z</dc:date>
    </item>
    <item>
      <title>AW:Re: transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168781#M1287117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As this is a proceeding load script get rid of the "form table1" and add the columns you want to reside... in the new table (production)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;production,&lt;/P&gt;&lt;P&gt;if(Isnull(costcenter),'4000',costcenter) as costcenterabroad;&lt;/P&gt;&lt;P&gt;sql select&lt;BR /&gt;production,&lt;BR /&gt;costcenter as costcenterabroad&lt;BR /&gt;from table1 ;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Greedings Boris;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168781#M1287117</guid>
      <dc:creator />
      <dc:date>2009-10-14T18:39:46Z</dc:date>
    </item>
    <item>
      <title>AW:Re: transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168782#M1287118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excuse me:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(Isnull(costcenter),'4000',costcenter) as costcenterabroad;&lt;/P&gt;&lt;P&gt;sql select&lt;BR /&gt;production,&lt;/P&gt;&lt;P&gt;costcenter&lt;BR /&gt;from table1 ;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168782#M1287118</guid>
      <dc:creator />
      <dc:date>2009-10-14T18:43:36Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168783#M1287119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, sorry&lt;/P&gt;&lt;P&gt;It isn't NULL but a it's just an empty string. What do I have to change in the script to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 20:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168783#M1287119</guid>
      <dc:creator />
      <dc:date>2009-10-14T20:03:28Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168784#M1287120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;if( len( trim( costcenter ) ) = 0,'4000',costcenter) ...&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 20:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168784#M1287120</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-14T20:14:30Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168785#M1287121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No change. I still have no production on costcenter 4000. It's stil all on the costcenter with no value (empty). Verry strange.... &lt;IMG alt="Indifferent" src="http://community.qlik.com/emoticons/emotion-8.gif" /&gt; I cannot find the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 21:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168785#M1287121</guid>
      <dc:creator />
      <dc:date>2009-10-14T21:13:39Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168786#M1287122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the entire script portion regarding this problem? I think the error is NOT that empty costcenters are not converted to 4000 in the first step. In your first example at least you make a table only with costcenter1 in the first load - no empty costcenter1 values should be there any more in that step; in the following "select production, costcenter as costcenter1 ..." you are loading the empty costcenter - values again from the database of course and rename it to costcenter1 and create another table - then the two tables are joined by costcenter1; second table HAS empty values, first table has NOT. Hence, the empty values from table2 have production.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 23:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168786#M1287122</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-14T23:26:12Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168787#M1287123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes ofcourse. (sorry for the late respons)&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;LOAD&lt;/B&gt; if( len( trim( costcenter ) ) = '0','4000',costcenter) &lt;B&gt;as&lt;/B&gt; costcenterabroad;&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;sql&lt;/B&gt; &lt;B&gt;select&lt;/B&gt; *&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;FROM&lt;/B&gt; "DataBI_Versie4".dbo."PCD_Afdelingen";&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;sql&lt;/B&gt; &lt;B&gt;select&lt;/B&gt; "Afd_Extra1",&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;"Afd_Extra2",&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;"Afd_Extra3",&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;"Afd_ID",&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;"Inst_ID",&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;costcenter as costcenterabroad,&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;LISZNumber,&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Name&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;B&gt;FROM&lt;/B&gt; "DataBI_Versie4".dbo."PCD_Afdelingen"; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 14:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168787#M1287123</guid>
      <dc:creator />
      <dc:date>2009-10-16T14:48:20Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168788#M1287124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following (I tried it in a test environment and it worked):&lt;/P&gt;&lt;P&gt;1. in the first line you must write " = 0 " ionstead of " = '0' . You compare to an integer and not to a string.&lt;/P&gt;&lt;P&gt;2. AFTER the first "FROM" and the BEFORE the second "sql select" (would be between line 3 and 4) insert:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;"Afd_Extra1",&lt;BR /&gt;"Afd_Extra2",&lt;BR /&gt;"Afd_Extra3",&lt;BR /&gt;"Afd_ID",&lt;BR /&gt;"Inst_ID",&lt;BR /&gt;if( len ( trim ( costcenterabroad ) ) = 0,'4000',costcenterabroad ) as costcenterabroad,&lt;BR /&gt;LISZNumber,&lt;BR /&gt;Name;&lt;/P&gt;&lt;P&gt;If that doesn't help, I'm out of ideas.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 15:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168788#M1287124</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-16T15:59:26Z</dc:date>
    </item>
    <item>
      <title>transform Null value to value</title>
      <link>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168789#M1287125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thx Joachim!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT WORKS &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 16:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-Null-value-to-value/m-p/168789#M1287125</guid>
      <dc:creator />
      <dc:date>2009-10-20T16:06:38Z</dc:date>
    </item>
  </channel>
</rss>

