<?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 Get a percentage in a calculated field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623948#M735116</link>
    <description>&lt;P&gt;Hello to all&lt;BR /&gt;Help: &lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The expression:&amp;nbsp;&lt;STRONG&gt;= num (Sum ({&amp;lt;Year = {$ (= Max (Year))}&amp;gt;} Amount),) / num (Sum ({&amp;lt;Year = {$ (= Max (Year) -1)}&amp;gt;} Amount) * (1+ (Budget))) * 100&amp;nbsp;&lt;/STRONG&gt;gives me the result: &lt;STRONG&gt;54,57820&lt;/STRONG&gt; ...&lt;BR /&gt;I want to get &lt;STRONG&gt;58.78%&lt;/STRONG&gt;, but I don't understand how and where to put in the right syntax the expression percentage: '#, ## 0.00%' with the right parentheses.&lt;BR /&gt;Can you help me?&lt;BR /&gt;Thanks in advance ...&lt;BR /&gt;Luigi&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Adforma</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623948#M735116</link>
      <description>&lt;P&gt;Hello to all&lt;BR /&gt;Help: &lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The expression:&amp;nbsp;&lt;STRONG&gt;= num (Sum ({&amp;lt;Year = {$ (= Max (Year))}&amp;gt;} Amount),) / num (Sum ({&amp;lt;Year = {$ (= Max (Year) -1)}&amp;gt;} Amount) * (1+ (Budget))) * 100&amp;nbsp;&lt;/STRONG&gt;gives me the result: &lt;STRONG&gt;54,57820&lt;/STRONG&gt; ...&lt;BR /&gt;I want to get &lt;STRONG&gt;58.78%&lt;/STRONG&gt;, but I don't understand how and where to put in the right syntax the expression percentage: '#, ## 0.00%' with the right parentheses.&lt;BR /&gt;Can you help me?&lt;BR /&gt;Thanks in advance ...&lt;BR /&gt;Luigi&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623948#M735116</guid>
      <dc:creator>Adforma</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623956#M735119</link>
      <description>&lt;P&gt;Firstly: You are multiplying by 100 which transforms your 0.58 (58%) into 58 (5800%)&lt;/P&gt;&lt;P&gt;Secondly: you only need one NUM() in the whole expression, a NUM() that is wrapping the whole expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thirdly: if you need help with the fact that you are getting the value 54 but expect the value 58 then you will probably need to provide us with more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 08:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623956#M735119</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-15T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623958#M735120</link>
      <description>&lt;P&gt;Thanks Vegar for the answer.&lt;BR /&gt;I was searching something as this:&lt;BR /&gt;=num(Sum({&amp;lt;Year={$(=Max(Iear))}&amp;gt;} Revenue)&lt;STRONG&gt;,'#.##0,00 €')&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;that f.i. give me this:&amp;nbsp;&lt;STRONG&gt;4.500,00 €&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;but in my expression:&lt;BR /&gt;=num(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} Revenue),)/num(Sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} Revenue)*(1+(Budget)), &lt;STRONG&gt;'#,##0.00%'&lt;/STRONG&gt;)&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;the &lt;STRONG&gt;Expression&lt;/STRONG&gt;is &lt;STRONG&gt;OK&lt;/STRONG&gt; but&amp;nbsp;the string&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;'#,##0.00%'&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;unfortunately is &lt;STRONG&gt;ininfluent&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Luigi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 08:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623958#M735120</guid>
      <dc:creator>Adforma</dc:creator>
      <dc:date>2019-09-15T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623965#M735121</link>
      <description>&lt;P&gt;If the expression is correct then you're&amp;nbsp; almost there, you just need to get the formatting&amp;nbsp; correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's not working for you like you wrote then you might need to make use of the second and third parameters in the num function (the delimiters). Take a look at the help page for info:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/FormattingFunctions/Num.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/FormattingFunctions/Num.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes it's just as easy to do the number formatting in the chart object properties. You could give that approach a go as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 12:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1623965#M735121</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-15T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1624043#M735122</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to use num only once:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;num(&lt;BR /&gt;Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} Revenue)&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} Revenue)*(1+(Budget))&lt;/P&gt;&lt;P&gt;, '#,##0.00%')&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 08:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1624043#M735122</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-16T08:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1624078#M735123</link>
      <description>&lt;P&gt;It looks like&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;&amp;nbsp; expression should work, but I'm just concerned about your final product &lt;FONT face="courier new,courier"&gt;(1+(budget))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Are you aware that you only get an value from budget when you have a single value per dimension combination in your chart?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;(1 + (budget))&lt;/FONT&gt;&lt;/FONT&gt; is equvivalent to&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;(1 +&amp;nbsp;&lt;STRONG&gt;only&lt;/STRONG&gt;(budget))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 09:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1624078#M735123</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-16T09:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage in a calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1628624#M735124</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Bergamo, did the last posts get you what you needed, or are you still working on things?&amp;nbsp; If the posts did help, please use the Accept as Solution button to mark the one(s) that got you what you needed.&amp;nbsp; If you did something else, please consider posting that and then mark that as the solution for future visitors, and if you are still working on things, leave an update as to where you stand.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-percentage-in-a-calculated-field/m-p/1628624#M735124</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-26T13:34:41Z</dc:date>
    </item>
  </channel>
</rss>

