<?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: Money formatting Millions and thousands in load script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1788678#M61589</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe you can help me with this?:&lt;/P&gt;&lt;P&gt;I'm trying to encapsulate the division by 1000000 in a formatting function that I can then"call" in a KPI object.&lt;/P&gt;&lt;P&gt;For instance: in the front-end, I want to show the number&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;21,784,123€&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;21.8 M€&lt;/STRONG&gt;. I have the mask in a SET variable to show the M€ sign, but how can I perform the division in the script and use it in the chart object as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Num&lt;/STRONG&gt;(SUM(#Sales),&lt;STRONG&gt;vFormatEURMillion)&amp;nbsp;&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 13:28:34 GMT</pubDate>
    <dc:creator>valpassos</dc:creator>
    <dc:date>2021-03-05T13:28:34Z</dc:date>
    <item>
      <title>Money formatting Millions and thousands in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1778604#M60505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;amount&lt;/STRONG&gt; &lt;/EM&gt;&lt;/U&gt;field has millions, thousands and hundreds as values. How do I convert into Money($) format as "xxxM", "xxxK", and "xxx" based on values in&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt; load script&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Malini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 22:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1778604#M60505</guid>
      <dc:creator>M_Jay</dc:creator>
      <dc:date>2021-01-29T22:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Money formatting Millions and thousands in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1778619#M60507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127100"&gt;@M_Jay&lt;/a&gt;, I don't thin you have to do this on script, but on front-end, in script you can have an amount in xxxK and another in xxxM, if you sum both the result will be in xxxM.&lt;/P&gt;&lt;P&gt;You can decide to divide all amounts by 1000 to have all values in k, or in M, but you need to have all amounts in the same grade as source: units, k's, M's...&lt;/P&gt;&lt;P&gt;On front-end using automatic format qlik sense may apply the correspondent multiplier to show as units, k, or M depending of the value, or you can control with a predefined expression like:&lt;/P&gt;&lt;P&gt;If(fabs([YourExpression])&amp;gt;1e6, Num(([YourExpression]/1e6),'#.##0,00M'),&lt;BR /&gt;If(fabs([YourExpression])&amp;gt;1e3, Num(([YourExpression]/1e3),'#.##0,00k'),&lt;BR /&gt;Num(([YourExpression]),'#.##0,00')&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 08:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1778619#M60507</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-01-30T08:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Money formatting Millions and thousands in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1788678#M61589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe you can help me with this?:&lt;/P&gt;&lt;P&gt;I'm trying to encapsulate the division by 1000000 in a formatting function that I can then"call" in a KPI object.&lt;/P&gt;&lt;P&gt;For instance: in the front-end, I want to show the number&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;21,784,123€&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;21.8 M€&lt;/STRONG&gt;. I have the mask in a SET variable to show the M€ sign, but how can I perform the division in the script and use it in the chart object as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Num&lt;/STRONG&gt;(SUM(#Sales),&lt;STRONG&gt;vFormatEURMillion)&amp;nbsp;&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 13:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1788678#M61589</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2021-03-05T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Money formatting Millions and thousands in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1788882#M61611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/8249"&gt;@valpassos&lt;/a&gt;, I'm not sure to understand what youa re trying or where you find the issue. Sometines I use a selector to chek if you want values in units, miles or millions, I do taht with a varible vDivisor that can have 1, 1000 or 1000000 as value, and all expressions are divide by this vDivisor variable, maybe you can use something similar.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 10:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1788882#M61611</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-06T10:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Money formatting Millions and thousands in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1789151#M61640</link>
      <description>&lt;P&gt;Ohh that's a good ideia! Haven't though of that. But imagine that I want to trigger that division in the script, with no need for a selector units/millions/... in the front-end. Is that possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 10:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1789151#M61640</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2021-03-08T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Money formatting Millions and thousands in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1790232#M61743</link>
      <description>&lt;P&gt;If you want to do that in script the basis are the same, create a variable with the divisor value an apply that divisor when loading values, doing this on script will requirte a reload to apply changes.&lt;/P&gt;&lt;P&gt;LOAD Amount/$(vDivisor) as Amount...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 18:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Money-formatting-Millions-and-thousands-in-load-script/m-p/1790232#M61743</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-10T18:53:11Z</dc:date>
    </item>
  </channel>
</rss>

