<?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: Strange num() Format Code behavior in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573236#M544314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess format like: '+#.##0' alone works fine unless you need zero with '+/-' prefix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 10:04:58 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-04-14T10:04:58Z</dc:date>
    <item>
      <title>Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573234#M544309</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've noticed a strange issue when using format codes in num() function:&lt;/P&gt;&lt;P&gt;In my year-to-year comparison I would like to display "+" in front of positive values and "+/-0" for zero values ... that works well but for some reason all negative values get a "+-" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea why? Please find the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-04-14_113749.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57210_2014-04-14_113749.jpg" style="width: 620px; height: 270px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 09:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573234#M544309</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2014-04-14T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573235#M544311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;zero is considered positive so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(0, '+#.##0; -#.##0') is enough, if you need that format for zero use a condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(myField = 0, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(0, '+#.##0; -#.##0; +/-0'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(0, '+#.##0; -#.##0')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 09:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573235#M544311</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-04-14T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573236#M544314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess format like: '+#.##0' alone works fine unless you need zero with '+/-' prefix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573236#M544314</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-04-14T10:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573237#M544315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num(10, '+#.##0; -#.##0')&lt;/P&gt;&lt;P&gt;=num(-10, '+#.##0; -#.##0')&lt;/P&gt;&lt;P&gt;=num(0, '+#.##0; -#.##0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573237#M544315</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2014-04-14T10:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573238#M544316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;P&gt;@ Allesandro: using an if-condition would be a workaround but I guess it should be possible using simple format codes&lt;/P&gt;&lt;P&gt;@ Tresesco: exactly, that's the problem (bug?!)&amp;nbsp; Using that format code in Excel works as intended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I can't find anything in the Qlikview Manual ...&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573238#M544316</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2014-04-14T10:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573239#M544317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;use the &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formate Code to identify : &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;'+(#.##0); -(#.##0); +/-0'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;these make sense that&amp;nbsp; Positive or &lt;/SPAN&gt;Negative values Easily &lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 14:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573239#M544317</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-04-14T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573240#M544318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunil, but your code is pretty the same - it doesn't work either...&lt;/P&gt;&lt;P&gt;Result for negative value:&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;-(+10)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 14:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573240#M544318</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2014-04-14T14:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573241#M544319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It strikes me as a bug. If there is any "+" in the third pattern, the "+" shows up in in the negative value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 15:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573241#M544319</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-05-20T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange num() Format Code behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573242#M544320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I proposed some workarounds at your post in the &lt;A href="https://community.qlik.com/group/1100"&gt;QlikBug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/128939"&gt;Strange num() Format Code behavior&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 20:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-num-Format-Code-behavior/m-p/573242#M544320</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-08-12T20:40:12Z</dc:date>
    </item>
  </channel>
</rss>

