<?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: To Calculate Sum of Rows with aggregated expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425340#M488028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if [PDM X Cemento] is a field name, try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(aggr(&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt; [PDM X Cemento]* Sum(Volumen)/Sum( DISTINCT TOTAL &amp;lt;Región&amp;gt; Volumen)&lt;/STRONG&gt;, Región, Gerencia)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2013 00:18:23 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-01-16T00:18:23Z</dc:date>
    <item>
      <title>To Calculate Sum of Rows with aggregated expression</title>
      <link>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425339#M488027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate the Total sum by Región of [PDM X Región 2] Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[PDM x Región 2] = [PDM x Cemento] * [Volumen %]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to get the total sum = 2.47&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="aggregation.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/30470_aggregation.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/300512/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My &lt;STRONG&gt;[PDM x Región 2&lt;/STRONG&gt;] Expression is:&lt;STRONG&gt; [PDM X Cemento]* Sum(Volumen)/Sum( DISTINCT TOTAL &amp;lt;Región&amp;gt; Volumen)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the sum(aggr(sum [PDM x Región 2] , Región, Gerencia)) and doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me, please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt; BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 00:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425339#M488027</guid>
      <dc:creator />
      <dc:date>2013-01-16T00:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: To Calculate Sum of Rows with aggregated expression</title>
      <link>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425340#M488028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if [PDM X Cemento] is a field name, try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(aggr(&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt; [PDM X Cemento]* Sum(Volumen)/Sum( DISTINCT TOTAL &amp;lt;Región&amp;gt; Volumen)&lt;/STRONG&gt;, Región, Gerencia)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 00:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425340#M488028</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-16T00:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: To Calculate Sum of Rows with aggregated expression</title>
      <link>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425341#M488029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You R a Genius!!! Thanx &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 00:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Calculate-Sum-of-Rows-with-aggregated-expression/m-p/425341#M488029</guid>
      <dc:creator />
      <dc:date>2013-01-16T00:34:20Z</dc:date>
    </item>
  </channel>
</rss>

