<?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: Re: Convert String to Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587525#M1115165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls check attached.. I have stored few values as text in excel &amp;amp; loaded to qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2014 11:34:46 GMT</pubDate>
    <dc:creator>manojkulkarni</dc:creator>
    <dc:date>2014-02-14T11:34:46Z</dc:date>
    <item>
      <title>Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587520#M1115160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me with this tiny problem?&lt;/P&gt;&lt;P&gt;I want to convert a string to a number in the load script.&lt;/P&gt;&lt;P&gt;I've tried this b&lt;SPAN style="font-size: 10pt;"&gt;ut it doesn't work: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[COLLI]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SC Colli_Adjusted]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In my data I have lots of numbers (positif as well as negative) and they need to be added up:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The result of the add should be 0, only in my report it shows 80 because the numbers -40 en 40 appear more than once and it seems that Qlikview loses them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I can't change the datatype in the original file, it's from an outside source !!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anyone help me please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Monique&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587520#M1115160</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2014-02-14T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587521#M1115161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems all ok (even if I should have used Num(Colli) as ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is related to dimensions you have used in your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587521#M1115161</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-14T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587522#M1115162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587522#M1115162</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-02-14T11:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587523#M1115163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum is zero after converting to num#(Field) to Field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your formula in an input box, and check what value is reflecting there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587523#M1115163</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-02-14T11:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587524#M1115164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are in principle doing the right thing. Num#() is the correct function. So I would guess that there is some other character that messes up the data, e.g. additional blanks or long hyphen instead of a minus sign.&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num#(Trim(COLLI))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also see what you get if you analyse what the minus sign really is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ord(Left(COLLI,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587524#M1115164</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-14T11:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587525#M1115165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls check attached.. I have stored few values as text in excel &amp;amp; loaded to qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587525#M1115165</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2014-02-14T11:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587526#M1115166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alessandro, the problem was situated in the chart where I created an Expression for that field, I had used this code:&lt;/P&gt;&lt;P&gt;= sum({$&amp;lt;[SC Article] = {"&amp;gt; 99999"}&amp;gt;}DISTINCT([SC Colli_Adjusted]))&amp;nbsp; instead of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SC Article]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt; 99999"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SC Colli_Adjusted]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It's working fine now &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587526#M1115166</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2014-02-14T11:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587527#M1115167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for your quick responses.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-String-to-Number/m-p/587527#M1115167</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2014-02-14T11:40:24Z</dc:date>
    </item>
  </channel>
</rss>

