<?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 AW:Re: AW:Re: AW:Re: Remove last two digits not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205664#M62053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot Miguel.&lt;/P&gt;&lt;P&gt;This is what drives me crazy right now. Everything is fine, but it does not work at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 15:14:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-08T15:14:13Z</dc:date>
    <item>
      <title>Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205657#M62046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ladies and Gentlemen,&lt;/P&gt;&lt;P&gt;I'm importing data from excel which has the following format: 1111.111111&lt;/P&gt;&lt;P&gt;In the Script I trying to get rid of the dot and then cut the last 2 digits.&lt;/P&gt;&lt;P&gt;In the script this line does not work:&lt;/P&gt;&lt;P style="font-style: italic"&gt;left(text(replace(Revenue,'.','')),(len(text(Revenue))-2)) AS [Net Revenues]&lt;/P&gt;&lt;P&gt;WHY?? It should be correct.&lt;/P&gt;&lt;P&gt;Doint the same line in a pivot works!&lt;/P&gt;&lt;P style="font-style: italic"&gt;=left(text(replace([Net Revenues],'.','')),(len(text([Net Revenues]))-2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU FOR YOUR HELP!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Using V9 SR6 32bit @ Win XP Service Pack 3, ~4GB Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205657#M62046</guid>
      <dc:creator />
      <dc:date>2011-02-08T14:21:43Z</dc:date>
    </item>
    <item>
      <title>Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205658#M62047</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;=left(purgechar([Net Revenues],'.'),len([Net Revenues]-3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205658#M62047</guid>
      <dc:creator />
      <dc:date>2011-02-08T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205659#M62048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;My guess is that although in the assistant you see those "dots" they maybe commas or any other character. So frst import raw data and see, say in a text object, if that replacement works. Check that the file looks fine in excel when you open it before importing (it if's getting a dump from any process, it may be some sort of conversion in that process that leaves different decimal or thousand separator than the one defined in your script variable ThousandSep or DecimalSep).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205659#M62048</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-08T14:31:41Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205660#M62049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Miguel,&lt;/P&gt;&lt;P&gt;Dear shans_bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your comments. The dot in the number is ok and not according to any format/decimals.&lt;/P&gt;&lt;P&gt;Replacing the dot with nothing works: &lt;I&gt;replace(Revenue,'.','')&lt;/I&gt;&lt;/P&gt;&lt;P&gt;The length of the whole string is always correct: &lt;I&gt;(len(text(Revenue))-2))&lt;/I&gt;&lt;/P&gt;&lt;P&gt;But, when I'm trying to cut the last two digits with the 'LEFT' Function, it is not:&lt;/P&gt;&lt;P style="font-style: italic"&gt;left(text(replace(Revenue,'.','')),(len(text(Revenue))-2)) AS [Net Revenues]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205660#M62049</guid>
      <dc:creator />
      <dc:date>2011-02-08T14:37:40Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205661#M62050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I may be missing something, but your syntax seems ok to me, and that's what makes me think of the data source. Since you are using Text() function when the value is a number, is there any chance that the Text(Revenue) is returning something else than the raw number? Try just loading the field as a string and check it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Text(Revenue) AS Revenue&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205661#M62050</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-08T14:47:35Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205662#M62051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has the same effect as it imported as a number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205662#M62051</guid>
      <dc:creator />
      <dc:date>2011-02-08T14:54:22Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205663#M62052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't think it's a question of leading/trailing zeroes/blanks since length is OK. I've tried here with some dummy data form excel file and your expression in field conversion works fine (last two decimals are truncated).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 15:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205663#M62052</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-08T15:07:08Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Re: Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205664#M62053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot Miguel.&lt;/P&gt;&lt;P&gt;This is what drives me crazy right now. Everything is fine, but it does not work at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 15:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205664#M62053</guid>
      <dc:creator />
      <dc:date>2011-02-08T15:14:13Z</dc:date>
    </item>
    <item>
      <title>AW:Remove last two digits not working</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205665#M62054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could solve it:&lt;/P&gt;&lt;P&gt;The solution right here:&lt;/P&gt;&lt;P&gt;num(left(text(replace(Revenue,'.','')),&lt;I&gt;(len(text(replace(Revenue,'.','')))-3)&lt;/I&gt;)) AS [Net Revenues]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Len-Function was not correct!&lt;/P&gt;&lt;P&gt;Thanks to all contributors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 15:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-last-two-digits-not-working/m-p/205665#M62054</guid>
      <dc:creator />
      <dc:date>2011-02-08T15:46:34Z</dc:date>
    </item>
  </channel>
</rss>

