<?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 Retaining a Total Value in a Calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540895#M39014</link>
    <description>&lt;P&gt;Hi I'm trying to fix a total to then display my selections as a %.&lt;/P&gt;&lt;P&gt;So the challenge is I&amp;nbsp; have set analysis as follows:&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'} &amp;gt;} ACTUAL_DURATION)/60)&lt;/P&gt;&lt;P&gt;Which gives me the total minutes where the&amp;nbsp;&lt;SPAN&gt;USAGE_CHARGE_GROUP =&amp;nbsp; Voice. Want I want to be able to do is make a selection e.g. Calls to Italy and then the selection number of minutes to be divided by the Total minutes to show the % of total minutes that were calls to Italy. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm unable to get this to work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this is clear?&lt;BR /&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;Kevin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 13:09:18 GMT</pubDate>
    <dc:creator>kevinstanfield</dc:creator>
    <dc:date>2019-02-07T13:09:18Z</dc:date>
    <item>
      <title>Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540895#M39014</link>
      <description>&lt;P&gt;Hi I'm trying to fix a total to then display my selections as a %.&lt;/P&gt;&lt;P&gt;So the challenge is I&amp;nbsp; have set analysis as follows:&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'} &amp;gt;} ACTUAL_DURATION)/60)&lt;/P&gt;&lt;P&gt;Which gives me the total minutes where the&amp;nbsp;&lt;SPAN&gt;USAGE_CHARGE_GROUP =&amp;nbsp; Voice. Want I want to be able to do is make a selection e.g. Calls to Italy and then the selection number of minutes to be divided by the Total minutes to show the % of total minutes that were calls to Italy. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm unable to get this to work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this is clear?&lt;BR /&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;Kevin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540895#M39014</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-07T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540901#M39016</link>
      <description>&lt;P&gt;What is the name of the field where you select Calls to Italy? May be you need this (assuming the field is called CallLocation)&lt;/P&gt;&lt;PRE&gt;=(Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}, &lt;FONT color="#FF0000"&gt;CallLocation&lt;/FONT&gt;&amp;gt;} ACTUAL_DURATION)/60)&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540901#M39016</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T13:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540918#M39019</link>
      <description>&lt;P&gt;Thanks for the prompt reply Sunny. I think that exhibits the same behaviour that&amp;nbsp; I'm currently seeing.&lt;BR /&gt;&lt;BR /&gt;My dashboard shows the total number of minutes and when I select the "Call location" it obviously updates the minutes in context to the selection made, in a separate KPI I want to express the number of minutes for the "Call Location" as a % of the overall minutes. e.g. Calls to Italy 1,000 minutes, overall minutes = 10,000 therefore 10% of the minutes are calls to Italy.&lt;/P&gt;&lt;P&gt;What I can't figure out is a way to retain the overall minutes so&amp;nbsp; I can use that as denominator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540918#M39019</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-07T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540925#M39021</link>
      <description>&lt;P&gt;So, if this is in a KPI, something like this should work....&lt;/P&gt;&lt;P&gt;Here, I am assuming that you will be looking at this by marking selection in CallLocation field.&lt;/P&gt;&lt;PRE&gt;=(Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)/60)/
 (Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}, CallLocation&amp;gt;} ACTUAL_DURATION)/60)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Numerator should filter based on the selection in CallLocation, but the denominator should ignore selection in CallLocation and should show the ACTUAL_DURATION from all locations. Isn't that what you want?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540925#M39021</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T13:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540935#M39023</link>
      <description>&lt;P&gt;Yes that's what I'm trying to achieve Sunny - I need to try that out so will get back to you when I get a chance to have a look&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1540935#M39023</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-07T13:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541053#M39038</link>
      <description>Try with TOTAL keyword. Also you don't required to divide by 60 while calculating %&lt;BR /&gt;Try below&lt;BR /&gt;&lt;BR /&gt;=Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)/&lt;BR /&gt;Sum(TOTAL &amp;lt;CallLocation&amp;gt; {$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant Sangle</description>
      <pubDate>Thu, 07 Feb 2019 15:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541053#M39038</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-02-07T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541056#M39040</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Try with TOTAL keyword. Also you don't required to divide by 60 while calculating %&lt;BR /&gt;Try below&lt;BR /&gt;&lt;BR /&gt;=Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)/&lt;BR /&gt;Sum(TOTAL &amp;lt;CallLocation&amp;gt; {$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant Sangle&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;TOTAL in a KPI object? How is that going to help in a dimensionless KPI object? or did I miss the part that this was needed in a table? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541056#M39040</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T15:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541065#M39042</link>
      <description>&lt;P&gt;I think i missed out that he required it in KPI&amp;nbsp;&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://community.qlik.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;. You are correct in this case he have to nullify the location field.&lt;/P&gt;&lt;P&gt;But you don't required to divide it by 60 in both numerator and denominator.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541065#M39042</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-02-07T15:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541067#M39043</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;But you don't required to divide it by 60 in both numerator and denominator.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Agreed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541067#M39043</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541076#M39046</link>
      <description>&lt;P&gt;Thanks Guys&amp;nbsp; - the dividing by 60 is turning seconds into minutes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541076#M39046</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-07T15:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541083#M39048</link>
      <description>&lt;P&gt;Ratio is not in minutes or seconds, ratio is a ratio and that is why you don't need 60 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541083#M39048</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T15:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541085#M39049</link>
      <description>&lt;P&gt;Yes of course&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541085#M39049</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-07T16:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541093#M39051</link>
      <description>&lt;P&gt;Okay so where do we stand? Do we have a solution yet &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541093#M39051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541095#M39052</link>
      <description>&lt;P&gt;I'm going to take a look this evening Sunny so will update tmrw - thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541095#M39052</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-07T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541098#M39053</link>
      <description>Sorry make sense. Let us know what you find.</description>
      <pubDate>Thu, 07 Feb 2019 16:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541098#M39053</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-07T16:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541392#M39065</link>
      <description>&lt;P&gt;That's worked nicely guys - thanks, appreciated.&lt;BR /&gt;&lt;BR /&gt;Just in terms of describing this behaviour to colleagues am I right in saying that any field added after the set analysis&amp;nbsp;condition is set i.e. those in &lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt;&amp;nbsp; will be&amp;nbsp;excluded from the set analysis and that many fields could be added?&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)/Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}, &lt;FONT face="helvetica" color="#FF0000"&gt;CALL_CLASS,USAGE_CALL_GROUP&lt;/FONT&gt;&amp;gt;} ACTUAL_DURATION)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 10:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541392#M39065</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-08T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541394#M39066</link>
      <description>&lt;P&gt;Accepted as a solution&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 10:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541394#M39066</guid>
      <dc:creator>kevinstanfield</dc:creator>
      <dc:date>2019-02-08T10:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining a Total Value in a Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541471#M39073</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17905"&gt;@kevinstanfield&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;those in &lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt;&amp;nbsp; will be&amp;nbsp;excluded from the set analysis&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)/Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}, &lt;FONT face="helvetica" color="#FF0000"&gt;CALL_CLASS,USAGE_CALL_GROUP&lt;/FONT&gt;&amp;gt;} ACTUAL_DURATION)&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;These fields in Red will ignore selection for the particular expression they are used in. If this is what you meant, then yes you are right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17905"&gt;@kevinstanfield&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;that many fields could be added?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That is correct, you can ignore selection in as many fields as you would like. If you want to ignore selection in all fields, then use 1 instead of naming all the fields&lt;/P&gt;&lt;PRE&gt;Sum({$&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION)/&lt;BR /&gt;Sum({&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&amp;lt;USAGE_CHARGE_GROUP= {'VOICE'}&amp;gt;} ACTUAL_DURATION) &lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 12:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retaining-a-Total-Value-in-a-Calculation/m-p/1541471#M39073</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-08T12:16:46Z</dc:date>
    </item>
  </channel>
</rss>

