<?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 How to convert null values into 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304006#M112390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a duplicate post? For the other post, I had replied as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (IsNull(ItemName), 0, ItemName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 18:22:16 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2011-06-20T18:22:16Z</dc:date>
    <item>
      <title>How to convert null values into 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304005#M112389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source is an excel file.&lt;/P&gt;&lt;P&gt;I want to convert null values ( - ) into 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tryed this but it doesn't work : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(ISNULL(ItemName)=0, ItemName, '0' ) AS ItemName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 18:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304005#M112389</guid>
      <dc:creator />
      <dc:date>2011-06-20T18:11:10Z</dc:date>
    </item>
    <item>
      <title>How to convert null values into 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304006#M112390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a duplicate post? For the other post, I had replied as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (IsNull(ItemName), 0, ItemName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 18:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304006#M112390</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-06-20T18:22:16Z</dc:date>
    </item>
    <item>
      <title>How to convert null values into 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304007#M112391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 is false, -1 is true so try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isNull(ItemName)=-1,ItemName,0) as 'ItemName'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't actually know if this will do what you want but that could be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try using if(len(ItemName)=0,0,ItemName) as 'ItemName'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've heard using len is better than isNull but off the top of my head I'm not sure why.&amp;nbsp; Might be b/c len catches missing as well as null?&amp;nbsp; Or maybe it's faster?&amp;nbsp; I don't know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 21:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304007#M112391</guid>
      <dc:creator />
      <dc:date>2011-06-20T21:34:23Z</dc:date>
    </item>
    <item>
      <title>How to convert null values into 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304008#M112392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If my memory serves me correctly there used to be a difference between what values were caught by Isnull() depending on if the QV instance was 32 or 64-bit. However, I'm pretty sure that was subsequently changed so that they function the same way. Anyway, I moved over to &lt;EM&gt;Len(Fieldname)=0&lt;/EM&gt; and haven't looked back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 03:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-values-into-0/m-p/304008#M112392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-21T03:44:48Z</dc:date>
    </item>
  </channel>
</rss>

