<?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: Custom Number Format QlikView -  'Bn','MM','K(000)','Actuals' in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2031958#M85012</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2856"&gt;@barnabyd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below expression is perfectly working for my scenario.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;= MONEY($(vCY_YTD),if(GetFieldSelections(NumbersFormat)='Actuals','$#,##0;($#,##0)',&lt;BR /&gt;'$#,##0.00;($#,##0.00)'))&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 08:47:08 GMT</pubDate>
    <dc:creator>jyoshna</dc:creator>
    <dc:date>2023-01-31T08:47:08Z</dc:date>
    <item>
      <title>Custom Number Format QlikView -  'Bn','MM','K(000)','Actuals'</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2028566#M84751</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I have created Inline Load for my Desired Number Format&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Inline_MillionsDivision:&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt; * Inline&amp;nbsp; [&lt;BR /&gt;NumbersFormat&lt;BR /&gt;Bn&lt;BR /&gt;MM&lt;BR /&gt;K(000)&lt;BR /&gt;Actuals&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Created a Pivot Chart with desired Dimension and my expression displays&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Sum({&amp;lt;Year = {&lt;STRONG&gt;&lt;EM&gt;$(vMaxYear)&lt;/EM&gt;&lt;/STRONG&gt;&amp;gt;} [Sales Credits])/&lt;STRONG&gt;&lt;EM&gt;$(vNumberDivision) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-disc"&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;vNumberDivision&lt;/EM&gt;&lt;/STRONG&gt; Variable has below&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;pick(match(GetFieldSelections(NumbersFormat),'Bn','MM','K(000)','Actuals'),10000000,1000000,1000,1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IN Front end I have created a list box which displays Above created Inline Number Formats&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Now any option I choose i am getting decimal places, My Requirement is now to display decimal values for other Number (Bn,MM,K(000)) Formats except Actuals when we input our selection in list box.&lt;/P&gt;
&lt;UL class="lia-list-style-type-disc"&gt;
&lt;LI&gt;Current Number Format which i have chosen under Chart Properties is Money ($#,##0.00;($#,##0.00))&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Can someone provide me a solution for this?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 12:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2028566#M84751</guid>
      <dc:creator>jyoshna</dc:creator>
      <dc:date>2023-01-22T12:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Number Format QlikView -  'Bn','MM','K(000)','Actuals'</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2028598#M84757</link>
      <description>&lt;P&gt;I think this might work ...&lt;/P&gt;
&lt;P&gt;Set a new variable&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;vNumberFormat&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pick( match( GetFieldSelections(NumbersFormat)
           , 'Bn', 'MM', 'K(000)', 'Actuals' )
           , '#0', '#0',   '#0',   '#0.00'
    )&lt;/LI-CODE&gt;
&lt;P&gt;Then your expression becomes:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;num( Sum( {&amp;lt;Year = {$(vMaxYear)&amp;gt;} [Sales Credits]) / $(vNumberDivision)
   , $(vNumberFormat)
   )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;... but that's a lot of code for a simple sum() expression!&lt;/P&gt;
&lt;P&gt;Cheers, Barnaby.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 20:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2028598#M84757</guid>
      <dc:creator>barnabyd</dc:creator>
      <dc:date>2023-01-22T20:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Number Format QlikView -  'Bn','MM','K(000)','Actuals'</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2028716#M84761</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2856"&gt;@barnabyd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HI Barnaby,&lt;/P&gt;
&lt;P&gt;Thank You for response.&lt;/P&gt;
&lt;P&gt;Actually, for quick understanding purpose&amp;nbsp; i gave Sum() but actually what i am using is below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Year = {$(vMaxYear)},Month=,[Fee Date]={'&amp;gt;=$(=(vMinDate))&amp;lt;=$(=(vMaxDate))'},LostDoneStatus={'DONE'}&amp;gt;}([Net Revenue]+[Sales Credits]))/$(vNumberDivision)&lt;/P&gt;
&lt;P&gt;The above expression i am storing into another variable (vCY_YTD) and i used it in Pivot chart&lt;/P&gt;
&lt;P&gt;So my pivot chart expression has&amp;nbsp;$(vCY_YTD) , likewise i have calculated for prior years also.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the approach you suggested above now i have modified the expression to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=num($(vCY_YTD),$(vNumberFormat))&lt;/P&gt;
&lt;P&gt;But still it didn't give me the desired output, decimals are being displayed for all the selections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you further help me ?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 09:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2028716#M84761</guid>
      <dc:creator>jyoshna</dc:creator>
      <dc:date>2023-01-23T09:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Number Format QlikView -  'Bn','MM','K(000)','Actuals'</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2029034#M84780</link>
      <description>&lt;P&gt;G'day&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162544"&gt;@jyoshna&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;With a situation like this, I would create a simple stand-alone app and test out each concept in isolation. I just did a quick google search on "qlik numbers with scaling factor" and found&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Scripting-expression/m-p/1580161" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;article where the 'only()' function fixed the problem.&lt;/P&gt;
&lt;P&gt;Cheers, Barnaby.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 21:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2029034#M84780</guid>
      <dc:creator>barnabyd</dc:creator>
      <dc:date>2023-01-23T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Number Format QlikView -  'Bn','MM','K(000)','Actuals'</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2031958#M85012</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2856"&gt;@barnabyd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below expression is perfectly working for my scenario.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;= MONEY($(vCY_YTD),if(GetFieldSelections(NumbersFormat)='Actuals','$#,##0;($#,##0)',&lt;BR /&gt;'$#,##0.00;($#,##0.00)'))&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 08:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Number-Format-QlikView-Bn-MM-K-000-Actuals/m-p/2031958#M85012</guid>
      <dc:creator>jyoshna</dc:creator>
      <dc:date>2023-01-31T08:47:08Z</dc:date>
    </item>
  </channel>
</rss>

