<?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 Calculated field with null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274692#M102671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum( Crédti, Débit) as Delta&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;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 19:06:21 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-06-08T19:06:21Z</dc:date>
    <item>
      <title>Calculated field with null values</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274691#M102670</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;Here is my problem : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I aim at calculating a field with 2 other fields : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Libellé,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Débit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Crédit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Crédit + Débit as Delta&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when one of the 2 values is null, Delta displays null too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the best way to resolve it is to convert the null values to 0, before the calculation of "Delta"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell me how to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 18:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274691#M102670</guid>
      <dc:creator />
      <dc:date>2011-06-08T18:30:30Z</dc:date>
    </item>
    <item>
      <title>Calculated field with null values</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274692#M102671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum( Crédti, Débit) as Delta&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;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 19:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274692#M102671</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-08T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated field with null values</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274693#M102672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've read that isnull can give inconsistent results in 64 bit environments so a method using len is also here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;loadtime,&lt;/P&gt;&lt;P&gt;if(isnull(value),0,1) as isnull_value,&lt;/P&gt;&lt;P&gt;if(len(value)=0,0,1)&amp;nbsp; as len_value&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; now()&amp;nbsp; as loadtime,&lt;/P&gt;&lt;P&gt; null() as value&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 19:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-field-with-null-values/m-p/274693#M102672</guid>
      <dc:creator />
      <dc:date>2011-06-08T19:21:05Z</dc:date>
    </item>
  </channel>
</rss>

