<?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: why this simple formula does not work in my script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567767#M596940</link>
    <description>I believe QlikView returns a null when adding two fields if one of those fields is null. You'd have to use an if statement to replace null with 0 to get a result.</description>
    <pubDate>Wed, 10 Apr 2019 16:04:29 GMT</pubDate>
    <dc:creator>wandererroch</dc:creator>
    <dc:date>2019-04-10T16:04:29Z</dc:date>
    <item>
      <title>why this simple formula does not work in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567750#M596939</link>
      <description>&lt;P&gt;hi every body,&lt;/P&gt;&lt;P&gt;here is my script :&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;LOAD KeyTemp1, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;ANNEE_CARTO, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;MOIS_CARTO, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;INSEE, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;%KeyField, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;%KeyCumul, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;OJD_A, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;OJD_A_1,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;OJD_A - OJD_A_1 as Ecart_M // écart OJD année A vs OJD année A_1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;[D:\QlikviewData\SourceDocuments\VENTES\QVD_zmsd_carto\zmsd_c3_modif.qvd]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;(qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;OJD_A - OJD_A_1 as Ecart_M&amp;nbsp;&lt;SPAN&gt;is given the difference between&amp;nbsp;OJD_A and&amp;nbsp;OJD_A_1 &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;but for a line, the script gives nothing.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="why.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9903i75A1901B97EC6FCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="why.JPG" alt="why.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Does anyone know why ?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Arnault&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;si the files attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 15:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567750#M596939</guid>
      <dc:creator>doespirito</dc:creator>
      <dc:date>2019-04-10T15:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: why this simple formula does not work in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567767#M596940</link>
      <description>I believe QlikView returns a null when adding two fields if one of those fields is null. You'd have to use an if statement to replace null with 0 to get a result.</description>
      <pubDate>Wed, 10 Apr 2019 16:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567767#M596940</guid>
      <dc:creator>wandererroch</dc:creator>
      <dc:date>2019-04-10T16:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: why this simple formula does not work in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567775#M596941</link>
      <description>&lt;P&gt;thank you i've just try to use this :&lt;/P&gt;&lt;P&gt;if(IsNull(OJD_A),0,OJD_A) as OJD_A,&lt;BR /&gt;if(IsNull(OJD_A_1),0,OJD_A_1) as OJD_A_1&lt;/P&gt;&lt;P&gt;in a previous script&lt;/P&gt;&lt;P&gt;before but it still doesen't work&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 16:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567775#M596941</guid>
      <dc:creator>doespirito</dc:creator>
      <dc:date>2019-04-10T16:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: why this simple formula does not work in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567780#M596942</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;in fact it works well sorry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 16:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1567780#M596942</guid>
      <dc:creator>doespirito</dc:creator>
      <dc:date>2019-04-10T16:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: why this simple formula does not work in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1569532#M596943</link>
      <description>You can use the rangesum function which will some everything that has a value and will ignore nulls&lt;BR /&gt;RangeSum(OJD_A, -OJD_A_1) as Ecart_M</description>
      <pubDate>Mon, 15 Apr 2019 15:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-this-simple-formula-does-not-work-in-my-script/m-p/1569532#M596943</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-04-15T15:17:32Z</dc:date>
    </item>
  </channel>
</rss>

