<?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: Text to Number not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297909#M841914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you do a numericcount() and a missingcount() on your fields and post the example please...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2017 12:01:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-21T12:01:55Z</dc:date>
    <item>
      <title>Text to Number not working</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297907#M841912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below extract.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160807_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As can be seen from above, the PRQTY and Calculation (QTY+PRQTY) is text, and the [Sum of QTY] and QTY fields are numeric based on the text alignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trouble is, that I am trying to do a calculation QTY+PRQTY, and the result looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" height="296" src="https://community.qlik.com/legacyfs/online/160811_Capture2.JPG" style="height: 295.579px; width: 360px;" width="360" /&gt;&lt;/P&gt;&lt;P&gt;Seems that when the PRQTY is equal to 0 (isnull value was changed to 0 with the hope of fixing the issue) it does not keep the QTY as the result, instead it says 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is a result of a formatting issue , however i have tried the below formulas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Num(QTY) as QTY&lt;/LI&gt;&lt;LI&gt;Num#(QTY) as QTY&lt;/LI&gt;&lt;LI&gt;(Num (Trim([QTY]),'#,##0', '.' , ',')&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have also tried using the "Number" sheet and changed the format to number there, and to Fixed to etc. with no result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've resorted to the below formula, which yields the correct result, i am just unsure as to why the null values, cannot be converted into number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/160822_Capture3.JPG" style="height: 250px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Anyone share some insight?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297907#M841912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Number not working</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297908#M841913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with RangeSum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;QTY, PRQTY)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297908#M841913</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-21T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Number not working</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297909#M841914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you do a numericcount() and a missingcount() on your fields and post the example please...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297909#M841914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T12:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Number not working</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297910#M841915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruan, NULL is not a value, so it's not zero value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at &lt;/P&gt;&lt;P&gt;&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;Math operators like + return NULL if one of the operands is NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rangesum() however, like suggested by Sunny, is converting NULL to zero in its calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The option on presentation tab to replace NULL with any given text, like '0' is just for display purposes, it does not change how Qlik operates on your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297910#M841915</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-21T12:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Number not working</title>
      <link>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297911#M841916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Null value is used in any of the arithmetic operator (+,-,/,*) results always in Null. So in your case you need to convert NULL values to 0, so as to perform addition of two number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With Null&lt;/STRONG&gt; - (2+ Null =&lt;SPAN style="font-size: 13.3333px;"&gt;Null &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Null converted to 0&lt;/STRONG&gt; - ( 2+0=2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Rangesum() function as suggested by Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can use Alt() function &lt;STRONG&gt;alt(QTY,0) + alt(PRQTY,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-to-Number-not-working/m-p/1297911#M841916</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-04-21T12:33:32Z</dc:date>
    </item>
  </channel>
</rss>

