<?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 Sum of Two Totals Fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1934918#M77018</link>
    <description>&lt;P&gt;Hi is there a way to calculate sum between two TOTALS in PIVOT table or Straight Table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;for example i have the table bellow&lt;/P&gt;
&lt;TABLE width="442"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="80"&gt;A&lt;/TD&gt;
&lt;TD width="80"&gt;B&lt;/TD&gt;
&lt;TD width="122"&gt;C&lt;/TD&gt;
&lt;TD width="80"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;12&lt;/TD&gt;
&lt;TD&gt;14&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;"B+C/E"&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;14&lt;/TD&gt;
&lt;TD&gt;12&lt;/TD&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;20&lt;/TD&gt;
&lt;TD&gt;24&lt;/TD&gt;
&lt;TD&gt;40&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;20&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;50&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;TOTAL1&lt;/TD&gt;
&lt;TD&gt;TOTAL2&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;E=TOTAL1+TOTAL2&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I want to calculate TOTAL 1 + TOTAL2&lt;/P&gt;
&lt;P&gt;and also B+C/E&lt;/P&gt;
&lt;P&gt;E is TOTAL1 and TOTAL2&lt;/P&gt;
&lt;P&gt;thanks for ur help&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 14:05:57 GMT</pubDate>
    <dc:creator>theboss-123</dc:creator>
    <dc:date>2022-05-24T14:05:57Z</dc:date>
    <item>
      <title>Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1934918#M77018</link>
      <description>&lt;P&gt;Hi is there a way to calculate sum between two TOTALS in PIVOT table or Straight Table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;for example i have the table bellow&lt;/P&gt;
&lt;TABLE width="442"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="80"&gt;A&lt;/TD&gt;
&lt;TD width="80"&gt;B&lt;/TD&gt;
&lt;TD width="122"&gt;C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
&lt;P&gt;I want to calculate TOTAL 1 + TOTAL2&lt;/P&gt;
&lt;P&gt;and also B+C/E&lt;/P&gt;
&lt;P&gt;E is TOTAL1 and TOTAL2&lt;/P&gt;
&lt;P&gt;thanks for ur help&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1934918#M77018</guid>
      <dc:creator>theboss-123</dc:creator>
      <dc:date>2022-05-24T14:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935215#M77038</link>
      <description>&lt;P&gt;In general it's possible to ignore all respectively a certain dimensionality and/or applying further conditions within an expression, maybe something in this way:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; HorizontalDim = {'B', 'C'}&amp;gt;} total &amp;lt;VerticalDim&amp;gt; Value)&lt;/P&gt;
&lt;P&gt;Important is that there is a place where the calculations could be displayed - means there must any partial-sum and/or dimension-value where it could be done. By the partial-sums they could be queried with dimensionality() and/or secondarydimensionality() and you may add an (artificial) extra dimension if you need more than one and/or you need to add extra dimension-values to your (doubled) fields.&lt;/P&gt;
&lt;P&gt;This means it's possible but it may not be trivial and may need some efforts and could have some side-effects. Therefore it might be easier to integrate such requirements directly into the data-model maybe by (pre-)calculating the results already in the script or making there an appropriate matching of the data, for example with an as-of-table.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935215#M77038</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T06:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935283#M77051</link>
      <description>&lt;P&gt;Hi Marcus Firstly thanks for your response my pivot table looks like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theboss123_0-1653469437397.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80249iE46C718BB830DA8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="theboss123_0-1653469437397.png" alt="theboss123_0-1653469437397.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;can you explain me with exemple pleasebecause im a beguinner in QLIKVIEW&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 09:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935283#M77051</guid>
      <dc:creator>theboss-123</dc:creator>
      <dc:date>2022-05-25T09:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935287#M77052</link>
      <description>&lt;P&gt;here is the synthaxe of the formula of Set but it is incorrect&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; [MOULE FRAIS] = {'60/65'}&amp;gt;} total &amp;lt;Provenance&amp;gt; {'Espagne'})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it is not working&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 09:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935287#M77052</guid>
      <dc:creator>theboss-123</dc:creator>
      <dc:date>2022-05-25T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935318#M77056</link>
      <description>&lt;P&gt;The syntax is wrong and it should rather look like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt; [MOULE FRAIS] = {'60/65'}&amp;gt;} total &amp;lt;Provenance&amp;gt; &lt;STRONG&gt;[Value]&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;whereby your pivot and your tried expression looked quite different to your example from the start.&lt;/P&gt;
&lt;P&gt;It's not quite clear for me what you are trying to do. I assume the aim is calculating the quote of the amounts and sales per the dimension-levels. If so it could be done with the mentioned total - means just using your origin expression + an appropriate total-statement.&lt;/P&gt;
&lt;P&gt;If some of the dimension-values should be added together and/or various conditions should be applied and/or it should be displayed as extra values it could become quite complex. At this point it should be considered to show only these values within the wanted granularity and applying on it the quote-calculation instead of trying to show the data + granularity of A but calculating with the&amp;nbsp;data + granularity of B. I don't want to say that this won't be technically possible but it's most likely not sensible in regard to the development efforts and the usability.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 10:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935318#M77056</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935393#M77064</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;SPAN&gt;sum({&amp;lt; [MOULE FRAIS] = {'60/65'}&amp;gt;} total &amp;lt;Provenance&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[Value]&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;but what do you mean by [Value]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and in my case&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theboss123_0-1653480122240.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80283i1D3A55B531C4EC50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="theboss123_0-1653480122240.png" alt="theboss123_0-1653480122240.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to calculate for example "64 + 120" which are respectively the Nbr Futs of Espagne and MAROC&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935393#M77064</guid>
      <dc:creator>theboss-123</dc:creator>
      <dc:date>2022-05-25T12:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935416#M77067</link>
      <description>&lt;P&gt;Value is just a placeholder for the field which should be aggregated. To get the sum of 64 + 120 you may apply:&lt;/P&gt;
&lt;P&gt;sum(total &amp;lt;Month&amp;gt; [Nbr Futs])&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935416#M77067</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T12:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935478#M77071</link>
      <description>&lt;P&gt;Hi Marcus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;that solved 50% of the issues and then i want to calculate for example&lt;/P&gt;
&lt;P&gt;(0+45)/&lt;SPAN&gt;sum(total &amp;lt;Month&amp;gt; [Nbr Futs]) and that shall aplly on all line with yellow colors&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theboss123_1-1653484817145.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80296i8404BBCC84859481/image-size/medium?v=v2&amp;amp;px=400" role="button" title="theboss123_1-1653484817145.png" alt="theboss123_1-1653484817145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935478#M77071</guid>
      <dc:creator>theboss-123</dc:creator>
      <dc:date>2022-05-25T13:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935510#M77076</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum(total &amp;lt;Month, [MOULE FRAIS]&amp;gt; [Nbr Futs]) /&amp;nbsp;sum(total &amp;lt;Month&amp;gt; [Nbr Futs])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935510#M77076</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Two Totals Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935531#M77081</link>
      <description>&lt;P&gt;You are Genius thanks Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Two-Totals-Fields/m-p/1935531#M77081</guid>
      <dc:creator>theboss-123</dc:creator>
      <dc:date>2022-05-25T13:53:09Z</dc:date>
    </item>
  </channel>
</rss>

