<?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 Currency symbols and auto formatting in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Currency-symbols-and-auto-formatting/m-p/1644989#M48104</link>
    <description>&lt;P&gt;Hi All. Posting on behalf of a customer to see if anyone can kindly assist. If not - no worries - I can attempt to find a Qlik resource to advise, and would of course paste the answer here ! Thanks Andrew.&lt;/P&gt;&lt;P&gt;I have the following expression which will switch the data show from stock qty / percentage to stock value / percentage.&lt;/P&gt;&lt;P&gt;If I use the auto formatting option it shows the data as xx.xxM or xxxK etc for the value or xx.xx% for percentage. I want to show the Currency symbol when used for value (€)&lt;/P&gt;&lt;P&gt;The below works when I use (measure expression but there doesn’t seem to be a format option to show the Stock Value in the same format as “Auto” but with a currency symbol.&lt;/P&gt;&lt;P&gt;If(V_qtyvscost='Cost',&lt;/P&gt;&lt;P&gt;if(v_Valvsper='Value',&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Stock Value €]),&lt;/P&gt;&lt;P&gt;num(Sum({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Stock Value €])/Sum({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}TOTAL[Stock Value €]),'######.00%')),&lt;/P&gt;&lt;P&gt;if(v_Valvsper='Value',&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Item_ID]),&lt;/P&gt;&lt;P&gt;num(Count({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Item_ID])/Count({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}TOTAL[Item_ID]),'######.00%')))&lt;/P&gt;&lt;P&gt;The proposed solution to this is the below&lt;/P&gt;&lt;P&gt;=If(sum([Stock Value €])/1000000 &amp;gt; 1,Num(sum([Stock Value €])/1000000,'€ #,### M'),&lt;/P&gt;&lt;P&gt;If(sum([Stock Value €])/1000, Num(sum([Stock Value €])/1000,' € #,### k'),&lt;/P&gt;&lt;P&gt;Num(sum([Stock Value €]),' € #.##0;€ -#.##0') ))&lt;/P&gt;&lt;P&gt;But this gives off results on charts when for example 100M compared to 100K would be the same height for a bar.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:09:22 GMT</pubDate>
    <dc:creator>AndrewMcIlwrick</dc:creator>
    <dc:date>2024-11-16T04:09:22Z</dc:date>
    <item>
      <title>Currency symbols and auto formatting</title>
      <link>https://community.qlik.com/t5/App-Development/Currency-symbols-and-auto-formatting/m-p/1644989#M48104</link>
      <description>&lt;P&gt;Hi All. Posting on behalf of a customer to see if anyone can kindly assist. If not - no worries - I can attempt to find a Qlik resource to advise, and would of course paste the answer here ! Thanks Andrew.&lt;/P&gt;&lt;P&gt;I have the following expression which will switch the data show from stock qty / percentage to stock value / percentage.&lt;/P&gt;&lt;P&gt;If I use the auto formatting option it shows the data as xx.xxM or xxxK etc for the value or xx.xx% for percentage. I want to show the Currency symbol when used for value (€)&lt;/P&gt;&lt;P&gt;The below works when I use (measure expression but there doesn’t seem to be a format option to show the Stock Value in the same format as “Auto” but with a currency symbol.&lt;/P&gt;&lt;P&gt;If(V_qtyvscost='Cost',&lt;/P&gt;&lt;P&gt;if(v_Valvsper='Value',&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Stock Value €]),&lt;/P&gt;&lt;P&gt;num(Sum({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Stock Value €])/Sum({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}TOTAL[Stock Value €]),'######.00%')),&lt;/P&gt;&lt;P&gt;if(v_Valvsper='Value',&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Item_ID]),&lt;/P&gt;&lt;P&gt;num(Count({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}[Item_ID])/Count({&amp;lt;[Reporting Date]={'$(=monthend(MAX([Reporting Date]),$(=v_Moncom)))'}&amp;gt;}TOTAL[Item_ID]),'######.00%')))&lt;/P&gt;&lt;P&gt;The proposed solution to this is the below&lt;/P&gt;&lt;P&gt;=If(sum([Stock Value €])/1000000 &amp;gt; 1,Num(sum([Stock Value €])/1000000,'€ #,### M'),&lt;/P&gt;&lt;P&gt;If(sum([Stock Value €])/1000, Num(sum([Stock Value €])/1000,' € #,### k'),&lt;/P&gt;&lt;P&gt;Num(sum([Stock Value €]),' € #.##0;€ -#.##0') ))&lt;/P&gt;&lt;P&gt;But this gives off results on charts when for example 100M compared to 100K would be the same height for a bar.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Currency-symbols-and-auto-formatting/m-p/1644989#M48104</guid>
      <dc:creator>AndrewMcIlwrick</dc:creator>
      <dc:date>2024-11-16T04:09:22Z</dc:date>
    </item>
  </channel>
</rss>

