<?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 Row in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225409#M77726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derek,&lt;/P&gt;&lt;P&gt;this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum(aggr(if(sum({&amp;lt;Month={"0"}&amp;gt;}GP) / (Sum({&amp;lt;Month={"0"}&amp;gt;}Target)/20) &amp;lt; 1, 0, if(sum({&amp;lt;Month={"0"}&amp;gt;}GP) / (Sum({&amp;lt;Month={"0"}&amp;gt;}Target)/20) &amp;lt; 1.5, 1, 2)), RepName, SHIPPED_DATE))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think you cannot use [expressions] for that.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 15:43:53 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2011-02-22T15:43:53Z</dc:date>
    <item>
      <title>Sum Row in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225407#M77724</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;Hoping this is an easy answer, but for me the solution is eluding me and any related posts don't seem to answer my exact issue.&lt;/P&gt;&lt;P&gt;Here's a simplified example of my issue...&lt;/P&gt;&lt;P&gt;I have a daily GP Target for each rep, if they don't hit their GP target for the day, they get no points, if they hit, they get 1 point and if they get over 150% of target for the day they get a further point (i.e. 2 Points for the day):&lt;/P&gt;&lt;P&gt;GP/Target &amp;lt; 100% = 0 Points&lt;/P&gt;&lt;P&gt;GP/Target &amp;lt; 150% = 1 Point&lt;/P&gt;&lt;P&gt;GP/Target &amp;gt; 150% = 2 Points&lt;/P&gt;&lt;P&gt;I want to be able to show for each rep, their daily stats for the month plus a total of how many points they have accumulated in the month. I've tried using a pivot table with dimensions of Rep and Date with Expressions for Target, GP and Points, but the Row Total for Points is calculating over the whole month not totalling the days. See example below, Total Points should be 4 as 2 days hit over 150%, but the total is actually calculating over the total.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3637_sourceID:3637" /&gt;&lt;/P&gt;&lt;P&gt;I've also attached a simplified QVW of my problem.&lt;/P&gt;&lt;P&gt;Any suggestions welcome.&lt;/P&gt;&lt;P&gt;My thanks in advance&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225407#M77724</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-02-22T15:12:47Z</dc:date>
    </item>
    <item>
      <title>Sum Row in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225408#M77725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum(aggr(IF([Achieved]&amp;lt;1,0,IF([Achieved]&amp;lt;1.5,1,2)),SHIPPED_DATE))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225408#M77725</guid>
      <dc:creator />
      <dc:date>2011-02-22T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Sum Row in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225409#M77726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derek,&lt;/P&gt;&lt;P&gt;this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum(aggr(if(sum({&amp;lt;Month={"0"}&amp;gt;}GP) / (Sum({&amp;lt;Month={"0"}&amp;gt;}Target)/20) &amp;lt; 1, 0, if(sum({&amp;lt;Month={"0"}&amp;gt;}GP) / (Sum({&amp;lt;Month={"0"}&amp;gt;}Target)/20) &amp;lt; 1.5, 1, 2)), RepName, SHIPPED_DATE))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think you cannot use [expressions] for that.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225409#M77726</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-02-22T15:43:53Z</dc:date>
    </item>
    <item>
      <title>Sum Row in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225410#M77727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi emaC&lt;/P&gt;&lt;P&gt;Nice try, but no cigar I'm afraid.&lt;/P&gt;&lt;P&gt;The result is 2 points in every date (even if not hit) plus it's not restricting the dates to this month.&lt;/P&gt;&lt;P&gt;Thanks all the same for giving it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225410#M77727</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-02-22T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Sum Row in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225411#M77728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion works correct, it counts 7!&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225411#M77728</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-02-22T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Sum Row in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225412#M77729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf&lt;/P&gt;&lt;P&gt;That worked thanks.&lt;/P&gt;&lt;P&gt;Now to translate the example back to my actual data!&lt;/P&gt;&lt;P&gt;Thanks again, I owe the forum a drink! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Row-in-Pivot-Table/m-p/225412#M77729</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-02-22T15:54:58Z</dc:date>
    </item>
  </channel>
</rss>

