<?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: Pivot Table - Incorrect Partial Sums in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174135#M887301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Replace Column(2) with the actual expression here&amp;gt;&lt;/SPAN&gt; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;network_node_type='City',&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; Sum(&lt;SPAN style="line-height: 1.5em;"&gt;{&amp;lt;[MRBC Cost]={'Number of actual readings'}&amp;gt;} [Unit_Cost (City)]&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; Sum({&amp;lt;[MRBC Cost]={'Number of actual readings'}&amp;gt;} [Unit_Cost (Rural)]&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;), Year, Month, [Connection Type]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 22:56:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-09T22:56:47Z</dc:date>
    <item>
      <title>Pivot Table - Incorrect Partial Sums</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174134#M887300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a three dimensional pivot table shown below- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136925_Capture.PNG" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the expression i'm using to calculate Cost of actual readings (OMR) - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column(2)*(&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;&amp;nbsp; network_node_type='City',&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;[MRBC Cost]={'Number of actual readings'}&amp;gt;} [Unit_Cost (City)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;[MRBC Cost]={'Number of actual readings'}&amp;gt;} [Unit_Cost (Rural)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*network node type is the 3rd dimension and column(2) is not in the snip above(It's towards left)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partial sums are incorrect. please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174134#M887300</guid>
      <dc:creator>ashish_2511</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Incorrect Partial Sums</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174135#M887301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Replace Column(2) with the actual expression here&amp;gt;&lt;/SPAN&gt; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;network_node_type='City',&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; Sum(&lt;SPAN style="line-height: 1.5em;"&gt;{&amp;lt;[MRBC Cost]={'Number of actual readings'}&amp;gt;} [Unit_Cost (City)]&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; Sum({&amp;lt;[MRBC Cost]={'Number of actual readings'}&amp;gt;} [Unit_Cost (Rural)]&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;), Year, Month, [Connection Type]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 22:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174135#M887301</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-09T22:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Incorrect Partial Sums</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174136#M887302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! Thanks a ton Sunny.. That worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;-Sneh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 07:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Incorrect-Partial-Sums/m-p/1174136#M887302</guid>
      <dc:creator>ashish_2511</dc:creator>
      <dc:date>2016-09-10T07:04:15Z</dc:date>
    </item>
  </channel>
</rss>

