<?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 strange behaviour with right function in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151310#M29185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i have an issue in scripting using &lt;STRONG&gt;right&lt;/STRONG&gt; function on my values always return negative sign &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My code is&lt;/P&gt;&lt;P&gt;[Code]LOAD @1 as %Key1,&lt;/P&gt;&lt;P&gt;@2 as %Key2,&lt;/P&gt;&lt;P&gt;@3 &amp;amp; '_' &amp;amp; @4 as %Key3,&lt;/P&gt;&lt;P&gt;@3 as %Key4,&lt;/P&gt;&lt;P&gt;@4 as %Key5,&lt;/P&gt;&lt;P&gt;if(index(@5,'-') &amp;lt;&amp;gt; 0 , 0-left(@5,len(@5)-1), @5 ) as [Value In Local Currency not bugged],&lt;/P&gt;&lt;P&gt;if(right(@6,1) = '-' , 0-left(@5,len(@5)-1), @5 ) as [Value In Group Currency bugged ]&lt;/P&gt;&lt;P&gt;FROM .\OHUB_YDCVARHIS_test.CSV (ansi, txt, delimiter is ';', no labels, msq);[/Code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i process my file :&lt;/P&gt;&lt;P&gt;9320;01000100;A2;00;716670.00;716670.00;716670.00;716670.00;EUR;EUR;2009003;K4&lt;/P&gt;&lt;P&gt;the result is always negative when i'm using the second formula &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Did i do something wrong ? or is this a known bug ?&lt;/P&gt;&lt;P&gt;thx for your replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2009 20:54:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-06T20:54:54Z</dc:date>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151310#M29185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i have an issue in scripting using &lt;STRONG&gt;right&lt;/STRONG&gt; function on my values always return negative sign &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My code is&lt;/P&gt;&lt;P&gt;[Code]LOAD @1 as %Key1,&lt;/P&gt;&lt;P&gt;@2 as %Key2,&lt;/P&gt;&lt;P&gt;@3 &amp;amp; '_' &amp;amp; @4 as %Key3,&lt;/P&gt;&lt;P&gt;@3 as %Key4,&lt;/P&gt;&lt;P&gt;@4 as %Key5,&lt;/P&gt;&lt;P&gt;if(index(@5,'-') &amp;lt;&amp;gt; 0 , 0-left(@5,len(@5)-1), @5 ) as [Value In Local Currency not bugged],&lt;/P&gt;&lt;P&gt;if(right(@6,1) = '-' , 0-left(@5,len(@5)-1), @5 ) as [Value In Group Currency bugged ]&lt;/P&gt;&lt;P&gt;FROM .\OHUB_YDCVARHIS_test.CSV (ansi, txt, delimiter is ';', no labels, msq);[/Code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i process my file :&lt;/P&gt;&lt;P&gt;9320;01000100;A2;00;716670.00;716670.00;716670.00;716670.00;EUR;EUR;2009003;K4&lt;/P&gt;&lt;P&gt;the result is always negative when i'm using the second formula &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Did i do something wrong ? or is this a known bug ?&lt;/P&gt;&lt;P&gt;thx for your replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 20:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151310#M29185</guid>
      <dc:creator />
      <dc:date>2009-08-06T20:54:54Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151311#M29186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would replace the left(@5,len(@5)-1) syntax by NUM#(left(@5,len(@5)-1)) because you could have some strnage behavior ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 21:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151311#M29186</guid>
      <dc:creator />
      <dc:date>2009-08-06T21:22:12Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151312#M29187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so it means thatt i have to stop using right(...,1) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 13:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151312#M29187</guid>
      <dc:creator />
      <dc:date>2009-08-07T13:39:57Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151313#M29188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use right, but to be sure to clean the string use trim() function&lt;/P&gt;&lt;P&gt;BR, Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 19:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151313#M29188</guid>
      <dc:creator>Annette_Steinrücken</dc:creator>
      <dc:date>2009-08-07T19:26:51Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151314#M29189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the proposal, i tried but with no success &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(right(trim(@5),1) = '-' , 0-left(@5,len(@5)-1), @5 )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 15:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151314#M29189</guid>
      <dc:creator />
      <dc:date>2009-08-10T15:23:28Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151315#M29190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to post the application?&lt;/P&gt;&lt;P&gt;BR, Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 16:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151315#M29190</guid>
      <dc:creator>Annette_Steinrücken</dc:creator>
      <dc:date>2009-08-10T16:13:21Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151316#M29191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here it is&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 21:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151316#M29191</guid>
      <dc:creator />
      <dc:date>2009-08-10T21:05:36Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151317#M29192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV interprets the value in @5 as a number though your setting is a leading '-'.&lt;BR /&gt;That's why the right function does not work here. the number is -1420.76 in QV and has no '-' following.&lt;/P&gt;&lt;P&gt;Regards, Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 14:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151317#M29192</guid>
      <dc:creator>Annette_Steinrücken</dc:creator>
      <dc:date>2009-08-11T14:07:41Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151318#M29193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the first line is not the problem, look at the second one, the figure is positive nevertheless Qlikview show it as a negative one&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 14:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151318#M29193</guid>
      <dc:creator />
      <dc:date>2009-08-11T14:35:30Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151319#M29194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I understand.&lt;/P&gt;&lt;P&gt;The problem is that QV interprets @5 as a number. Even if you try to force QV to take it as a string with text()&lt;BR /&gt;Obviously there is a difference between left and right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 16:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151319#M29194</guid>
      <dc:creator>Annette_Steinrücken</dc:creator>
      <dc:date>2009-08-11T16:27:20Z</dc:date>
    </item>
    <item>
      <title>strange behaviour with right function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151320#M29195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(index(text(@5),'-') &amp;lt;&amp;gt; 0 , 0-left(text(@5),len(text(@5))-1), text(@5) ) as [Value In Local Currency not bugged],&lt;BR /&gt; if(right(trim(text(@5)),1) = '-' , 0-left(text(@5),len(text(@5))-1), text(@5) ) as [Value In Group Currency bugged ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works if you put Text(@5) instead of just @5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 16:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-behaviour-with-right-function-in-load-script/m-p/151320#M29195</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2009-08-11T16:29:07Z</dc:date>
    </item>
  </channel>
</rss>

