<?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: How to format Numbers with some decimals? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897531#M312268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shiva,&lt;/P&gt;&lt;P&gt;The default option does not insert commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 17:12:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-26T17:12:54Z</dc:date>
    <item>
      <title>How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897527#M312264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In one attribute I have a set of numbers that include the following:&lt;/P&gt;&lt;P&gt;10345&lt;/P&gt;&lt;P&gt;0.001&lt;/P&gt;&lt;P&gt;487.723&lt;/P&gt;&lt;P&gt;10.02&lt;/P&gt;&lt;P&gt;16345.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My customers would like to see these numbers with commas and with no trailing zeros.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;10345&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; 10,345&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;0.001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; 0.001&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;487.723&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; 487.723&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;10.02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; 10.02&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;16345.1&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; 16,345.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;When I apply a format of ###,###.###, I get trailing zeros on every number, which is not desired.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is there a format option that will show both commas and only the significant trailing digits?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Do I have to use an IF stmt to detect the four cases (no decimals, 1 decimal, 2 decimal or 3 decimal) and format appropriately?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;John&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897527#M312264</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897528#M312265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this format string: num(MyNumber, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;###,###')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 08:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897528#M312265</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-08T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897529#M312266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be tis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="for.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86030_for.PNG" style="height: 183px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 09:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897529#M312266</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-05-08T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897530#M312267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;That format would not show the decimal portion of the value.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 17:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897530#M312267</guid>
      <dc:creator />
      <dc:date>2015-05-26T17:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897531#M312268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shiva,&lt;/P&gt;&lt;P&gt;The default option does not insert commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 17:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897531#M312268</guid>
      <dc:creator />
      <dc:date>2015-05-26T17:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897532#M312269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need a conditional formatting, maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Value,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; num((Value),'#,##0' &amp;amp; pick(1+ len(subfield(text(Value),'.',2)), '','.0','.00','.000'),'.',',') as Value2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;10345&lt;/P&gt;&lt;P&gt;0.001&lt;/P&gt;&lt;P&gt;487.723&lt;/P&gt;&lt;P&gt;10.02&lt;/P&gt;&lt;P&gt;16345.1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format codes description in the HELP talked about that something like this should/could work (except for pure integers):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'#,##0.0##','.',','&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work at my side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 17:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897532#M312269</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-26T17:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897533#M312270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I remember discussing something like this a few years ago. Attached is the solution I used at the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897533#M312270</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-26T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897534#M312271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try setting the property "Number Format Setting" to Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 20:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897534#M312271</guid>
      <dc:creator>anlonghi2</dc:creator>
      <dc:date>2015-05-26T20:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to format Numbers with some decimals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897535#M312272</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;maybe you could concatenate the formated integer part with the unformatted decimal part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_163148_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87596_QlikCommunity_Thread_163148_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14326804820239545" jivemacro_uid="_14326804820239545"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(Num(numbers,'#,###.###'),'.',1)&amp;amp;If(Index(numbers,'.'),'.'&amp;amp;Subfield(numbers,'.',2)) as numbersFormatted&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;numbers&lt;/P&gt;
&lt;P&gt;10345&lt;/P&gt;
&lt;P&gt;0.001&lt;/P&gt;
&lt;P&gt;487.723&lt;/P&gt;
&lt;P&gt;10.02&lt;/P&gt;
&lt;P&gt;16345.1&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-Numbers-with-some-decimals/m-p/897535#M312272</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-26T22:49:10Z</dc:date>
    </item>
  </channel>
</rss>

