<?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 convert neg number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553072#M689693</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;I want to upload a txt file, in which negative numbers are formatted as 1,111.11-.&lt;/P&gt;&lt;P&gt;QV does not recognize this as a number at all.&lt;/P&gt;&lt;P&gt;My attempt was in script to use &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AmountDC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'#,##0.0;#,##0.0-') in the script. That one only results in error message and a total disappearing of the numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Who knows what to do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;krgrds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hans&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 12:06:13 GMT</pubDate>
    <dc:creator>qlikhans</dc:creator>
    <dc:date>2013-10-14T12:06:13Z</dc:date>
    <item>
      <title>convert neg number</title>
      <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553072#M689693</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;I want to upload a txt file, in which negative numbers are formatted as 1,111.11-.&lt;/P&gt;&lt;P&gt;QV does not recognize this as a number at all.&lt;/P&gt;&lt;P&gt;My attempt was in script to use &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AmountDC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'#,##0.0;#,##0.0-') in the script. That one only results in error message and a total disappearing of the numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Who knows what to do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;krgrds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hans&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 12:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553072#M689693</guid>
      <dc:creator>qlikhans</dc:creator>
      <dc:date>2013-10-14T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert neg number</title>
      <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553073#M689695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach the a sampl txt file please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 12:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553073#M689695</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-10-14T12:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: convert neg number</title>
      <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553074#M689697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(FindOneOf(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;AmountDC&lt;/SPAN&gt;,'-') &amp;gt;1,SubField(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;AmountDC&lt;/SPAN&gt;,'-')*-1,&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;AmountDC&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 12:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553074#M689697</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-10-14T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: convert neg number</title>
      <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553075#M689699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Right(AmountDC, 1) = '-',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Left(AmountDC, Index(AmountDC, '-', -1)-1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AmountDC&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) AS AmountDC&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;data.txt (txt, codepage is 1252, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 12:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553075#M689699</guid>
      <dc:creator>dvasseur</dc:creator>
      <dc:date>2013-10-14T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: convert neg number</title>
      <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553076#M689702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you tried this?&lt;/P&gt;&lt;P&gt;=Num(Num#(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AmountDC&lt;/SPAN&gt;, '#,##0.0;#,##0.0-'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 12:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553076#M689702</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-10-14T12:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: convert neg number</title>
      <link>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553077#M689703</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;Sorry for the late reply. Thank you all for the suggestions. It is working fine now with the suggestion of Celambarasan.&lt;/P&gt;&lt;P&gt;kgrds&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 09:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-neg-number/m-p/553077#M689703</guid>
      <dc:creator>qlikhans</dc:creator>
      <dc:date>2013-11-11T09:13:33Z</dc:date>
    </item>
  </channel>
</rss>

