<?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 Number formatting - millions to billions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603693#M1093465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a beginner Qlikview user and am still struggling with anything past making simple charts and list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, I have a 'Market Size' KPI text box, with a formula of =sum(Amount)/1000000,'$#,###B'). In other words, I have a number that comes out in billions, with a nice B at the end of it. However, when I drill down on my chart to focus on individual businesses within that market, I'm really dealing with market sizing of millions, rather than billions. The result is that my KPI text box becomes an ugly $0.0000343B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can instruct the KPI text box to switch to millions, and switch the B with an M at the end, if the numbers become small enough? I have a hunch that I need to rewrite the expression formula as an if statement, but I'm not sure how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 14:34:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-06T14:34:07Z</dc:date>
    <item>
      <title>Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603693#M1093465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a beginner Qlikview user and am still struggling with anything past making simple charts and list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, I have a 'Market Size' KPI text box, with a formula of =sum(Amount)/1000000,'$#,###B'). In other words, I have a number that comes out in billions, with a nice B at the end of it. However, when I drill down on my chart to focus on individual businesses within that market, I'm really dealing with market sizing of millions, rather than billions. The result is that my KPI text box becomes an ugly $0.0000343B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can instruct the KPI text box to switch to millions, and switch the B with an M at the end, if the numbers become small enough? I have a hunch that I need to rewrite the expression formula as an if statement, but I'm not sure how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603693#M1093465</guid>
      <dc:creator />
      <dc:date>2014-05-06T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603694#M1093466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Amount)/1000000000 &amp;gt; 1,Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Amount)/1000000000&lt;/SPAN&gt;,'$#,###B'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Num(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Amount)/1000000&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'$#,###M')&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603694#M1093466</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-06T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603695#M1093467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Alessandro! This worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a follow-up question, if I encountered a number that was less than $1 million, how would I modify that expression to add a second condition to express that number in thousands?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 15:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603695#M1093467</guid>
      <dc:creator />
      <dc:date>2014-05-06T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603696#M1093468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;might be a bit late &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;SPAN class="emoticon-inline emoticon_wink" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but maybe also helpful:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14042009960115504" jivemacro_uid="_14042009960115504"&gt;
&lt;P&gt;SET vSize = Div(Log10($1),3);&lt;/P&gt;
&lt;P&gt;SET vFormatNumber = Dual(Num($1/Pow(10,3*$(vSize($1))),'#,##0')&amp;amp;' '&amp;amp;Pick($(vSize($1)),'K','Mil','Bil','Tril'),$1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vFormatNumber(parameter)) as paramFormat;&lt;/P&gt;
&lt;P&gt;LOAD pow(10,Rand()*14) as parameter&lt;/P&gt;
&lt;P&gt;AutoGenerate 30;&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-558200-61491/QlikCommunity_Thread_38556_Pic1.JPG.jpg" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="QlikCommunity_Thread_38556_Pic1.JPG.jpg" class="jive-image jiveImage" height="494" src="https://community.qlik.com/legacyfs/online/61493_QlikCommunity_Thread_38556_Pic1.JPG.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="217" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-558200-61492/QlikCommunity_Thread_38556_Pic3.JPG.jpg" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="QlikCommunity_Thread_38556_Pic3.JPG.jpg" class="jive-image jiveImage" height="519" src="https://community.qlik.com/legacyfs/online/61494_QlikCommunity_Thread_38556_Pic3.JPG.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="414" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 20:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603696#M1093468</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-06-30T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603697#M1093469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Marco - that is awesome! Now QlikView needs to add that so we can export w/out formatting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 00:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603697#M1093469</guid>
      <dc:creator />
      <dc:date>2014-08-20T00:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603698#M1093470</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;You can change the auto number formatting symbol from "G" to "B" in javascript&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check this &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2156" data-containertype="14" data-objectid="17461" data-objecttype="102" href="https://community.qlik.com/docs/DOC-17461"&gt;https://community.qlik.com/docs/DOC-17461&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lakshmikandh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603698#M1093470</guid>
      <dc:creator>lakshmikandh</dc:creator>
      <dc:date>2016-09-27T19:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603699#M1093471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco love this solution! Just what I was looking for. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2016 11:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603699#M1093471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-05T11:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603700#M1093472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. I almost lost it over this stupid problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 12:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603700#M1093472</guid>
      <dc:creator>max_potass</dc:creator>
      <dc:date>2017-07-25T12:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603701#M1093473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution! But it seems that it won't work for negative value. Anything that I need to change so that it can format both positive and negative value? Thanks again! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Edit*&lt;/P&gt;&lt;P&gt;Manage to get it to work after change the following by include the fabs function:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15034733712233462" jivemacro_uid="_15034733712233462"&gt;
&lt;P&gt;SET vSize = Div(Log10(&lt;STRONG&gt;fabs&lt;/STRONG&gt;($1)),3);&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 07:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603701#M1093473</guid>
      <dc:creator />
      <dc:date>2017-08-23T07:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603702#M1093474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you looking for similar out put &lt;/P&gt;&lt;P&gt;attached is the app &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180441_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 20:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/603702#M1093474</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2017-10-20T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting - millions to billions</title>
      <link>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/1747823#M1093475</link>
      <description>&lt;P&gt;Great. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-formatting-millions-to-billions/m-p/1747823#M1093475</guid>
      <dc:creator>writetoprithvi</dc:creator>
      <dc:date>2020-09-28T17:26:27Z</dc:date>
    </item>
  </channel>
</rss>

