<?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: The Pivot table Partial sum issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/The-Pivot-table-Partial-sum-issue/m-p/996030#M338923</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;modify your expression with sum(aggr(yourExpression,dimension))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(AGGR(If(City='BJ', count(DISTINCT LeadID)/3, count(DISTINCT LeadID)),Region,RegionDash,CenterName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 03:17:48 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2015-09-22T03:17:48Z</dc:date>
    <item>
      <title>The Pivot table Partial sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/The-Pivot-table-Partial-sum-issue/m-p/996029#M338922</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;&lt;/P&gt;&lt;P&gt;I have attached one QVW, as you can see the partial sum of Center Name is not correct in North-A, it should be 4 instead of 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the Data, Center AAA, BBB, DDD shared the same LeadID: 1,2,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Center CCC uses its own LeadID 4,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is if the Center under BJ that is AAA, BBB, DDD, the Leads should be divided by 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I use this expression: If(City='BJ', count(DISTINCT LeadID)/3, count(DISTINCT LeadID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the sum partial is not correct, could you help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 02:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Pivot-table-Partial-sum-issue/m-p/996029#M338922</guid>
      <dc:creator />
      <dc:date>2015-09-22T02:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: The Pivot table Partial sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/The-Pivot-table-Partial-sum-issue/m-p/996030#M338923</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;modify your expression with sum(aggr(yourExpression,dimension))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(AGGR(If(City='BJ', count(DISTINCT LeadID)/3, count(DISTINCT LeadID)),Region,RegionDash,CenterName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 03:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Pivot-table-Partial-sum-issue/m-p/996030#M338923</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-09-22T03:17:48Z</dc:date>
    </item>
  </channel>
</rss>

