<?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: Arithmetic Operation between two diff Aggr and changing the partial sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537886#M479754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need something like this (assuming Column1 is the single dimension in the table):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Sum...))&lt;/STRONG&gt; * &lt;STRONG&gt;Avg(Aggr(Avg...))&lt;/STRONG&gt; / Sum(TOTAL &lt;STRONG&gt;Aggr(Avg(Aggr(...)))&lt;/STRONG&gt;),&lt;/P&gt;&lt;P&gt;Column1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bold sections are your column2 and column3 expressions. All the chart dimensions need to be included in the dimensions of &lt;SPAN style="text-decoration: underline;"&gt;all&lt;/SPAN&gt; 5 of&amp;nbsp; the aggr() expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 14:30:10 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-01-20T14:30:10Z</dc:date>
    <item>
      <title>Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537882#M479750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the following table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Column 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Column3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="19" width="64"&gt;1.666667&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="19" width="64"&gt;6.666667&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="19" width="64"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Total&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="19" width="64"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="19" width="64"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;( Expected: &lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="19" width="64"&gt;23.33333&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Column 2 : is a SUM(AGGR(SUM [.....])))&lt;/P&gt;&lt;P&gt;Column 3 : is a Average of some value AVG(AGGR(AVG[...]))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Expression in Header 4 : (Column 2 * Column 3)/(Total of Column 3 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So my problem is in Header 4 : the total basically shows me Column 2 * Column 3 /Column 3 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but what i was is the sum of the values in Header 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can anyone help me out here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jacob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 14:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537882#M479750</guid>
      <dc:creator />
      <dc:date>2014-01-20T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537883#M479751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using a straight table, for Expression 4, change the Total Mode to Sum of Rows instead of Expression Total:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/51756_pastedImage_0.png" style="width: 620px; height: 549px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 14:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537883#M479751</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537884#M479752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole , i am using a pivot table and using partial sum. and the total in the partial sum is messed up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 14:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537884#M479752</guid>
      <dc:creator />
      <dc:date>2014-01-20T14:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537885#M479753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe Partial Sums always use expression totals, so you'll either need to mess around with your expression until it gives you the value you want (by summing the rows), or use a straight table instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 14:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537885#M479753</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537886#M479754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need something like this (assuming Column1 is the single dimension in the table):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Sum...))&lt;/STRONG&gt; * &lt;STRONG&gt;Avg(Aggr(Avg...))&lt;/STRONG&gt; / Sum(TOTAL &lt;STRONG&gt;Aggr(Avg(Aggr(...)))&lt;/STRONG&gt;),&lt;/P&gt;&lt;P&gt;Column1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bold sections are your column2 and column3 expressions. All the chart dimensions need to be included in the dimensions of &lt;SPAN style="text-decoration: underline;"&gt;all&lt;/SPAN&gt; 5 of&amp;nbsp; the aggr() expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 14:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537886#M479754</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-20T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537887#M479755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, i have attached an sample, it doesnt work. Sorry but do you mind helping me out here? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537887#M479755</guid>
      <dc:creator />
      <dc:date>2014-01-20T15:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537888#M479756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jacob,&lt;/P&gt;&lt;P&gt;Why should the total of column4 be 23.3333.&lt;/P&gt;&lt;P&gt;per your explanation it should be (20 * 600)&amp;nbsp; / 600 = 1200/600 = 20&amp;nbsp; isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537888#M479756</guid>
      <dc:creator />
      <dc:date>2014-01-20T15:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537889#M479757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached.&amp;nbsp; It should give you what you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum(aggr(avg(Sales)*Sum(Target),Country))/sum(aggr(Sum(TOTAL Target),Country)),Country))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537889#M479757</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T20:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Arithmetic Operation between two diff Aggr and changing the partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537890#M479758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 23:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetic-Operation-between-two-diff-Aggr-and-changing-the/m-p/537890#M479758</guid>
      <dc:creator />
      <dc:date>2014-01-20T23:14:55Z</dc:date>
    </item>
  </channel>
</rss>

