<?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 Rows in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626401#M1092492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DISCLAIMER: I have read a lot of the other solutions out there on getting the sum of rows in a pivot table. After a few hours of trying various solutions, I need to submit here to see if there is something completely unique about my requirement! I can't figure this one out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to get an annualized commission figure based upon how much commission my company has received and how many months have been billed.&lt;/P&gt;&lt;P&gt;My expression for the Annualized Agcy Comm figure calculates properly BY PRODUCT, but I can't get it to total those rows. Here is my expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum({$&amp;lt;IsWon={'true'}&amp;gt;}ProductionCompany_AccrualBalanceCalc))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(Count(Distinct{$&amp;lt;IsWon={'true'}&amp;gt;}AccountingMonth))&lt;/P&gt;&lt;P&gt;* 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot of my dilemma:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sum of Rows in Pivot Table.png" class="jive-image" src="/legacyfs/online/59470_Sum of Rows in Pivot Table.png" style="width: 620px; height: 173px;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 16:13:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-23T16:13:30Z</dc:date>
    <item>
      <title>Sum of Rows in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626401#M1092492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DISCLAIMER: I have read a lot of the other solutions out there on getting the sum of rows in a pivot table. After a few hours of trying various solutions, I need to submit here to see if there is something completely unique about my requirement! I can't figure this one out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to get an annualized commission figure based upon how much commission my company has received and how many months have been billed.&lt;/P&gt;&lt;P&gt;My expression for the Annualized Agcy Comm figure calculates properly BY PRODUCT, but I can't get it to total those rows. Here is my expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum({$&amp;lt;IsWon={'true'}&amp;gt;}ProductionCompany_AccrualBalanceCalc))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(Count(Distinct{$&amp;lt;IsWon={'true'}&amp;gt;}AccountingMonth))&lt;/P&gt;&lt;P&gt;* 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot of my dilemma:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sum of Rows in Pivot Table.png" class="jive-image" src="/legacyfs/online/59470_Sum of Rows in Pivot Table.png" style="width: 620px; height: 173px;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 16:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626401#M1092492</guid>
      <dc:creator />
      <dc:date>2014-05-23T16:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Rows in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626402#M1092493</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;It's because your expression is calculated for totals regardless of dimensions, but the months count is different for each row.&lt;/P&gt;&lt;P&gt;Use aggr function to calculate your formula over the chart dimensions explicitly and the Sum() function to get the result.&lt;/P&gt;&lt;P&gt;=Sum(aggr([your expression], [chart dimension1], ...))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 21:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626402#M1092493</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-05-23T21:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Rows in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626403#M1092494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh, I had the Aggr part right, but I wasn't wrapping the whole expression in a Sum(). Problem solved!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Rows-in-Pivot-Table/m-p/626403#M1092494</guid>
      <dc:creator />
      <dc:date>2014-05-27T13:16:07Z</dc:date>
    </item>
  </channel>
</rss>

