<?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: Partial Sum Incorrect in Pivot Table with multiple dimensions included in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981672#M335108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Gysbert Wassenaar,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time, I have seen this function being suggested by the Community members in the other discussions and so i have used the same formula as suggested like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(aggr(count(distinct Orders), &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;MyDim1, MyDim2, ..., MyDimX)&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So in my case i have written expression like below &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=IF(GetCurrentField([Cat/Prod]) = 'EnglishProductName',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(count(distinct Orders),Category,$(=GetCurrentFieldNamae(GroupName)),Year,Month),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(count(distinct Orders),Category,$(=GetCurrentFieldNamae(GroupName)),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EnglishProductName&lt;/SPAN&gt;,Year,Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the issue is with the 'TOTAL' which is not displaying correct based on the change of my cyclic dimension row values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 05:13:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-29T05:13:39Z</dc:date>
    <item>
      <title>Partial Sum Incorrect in Pivot Table with multiple dimensions included</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981670#M335106</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 searched the community forums for the related answers and implemented in my expressions but they are not working, so thought of posting my requirement and get the help from qlikview experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that i have created a Pivot table which has got 4 static dimensions, 1 cyclic dimension , 3 expressions&lt;/P&gt;&lt;P&gt;(Among these 4 static dimensions one dimension is shown by 'Enabling condition') and i am showing the data with Partial sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem happens here as shown to display "&lt;STRONG&gt;Total&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the expression is calculated using SUM&lt;SPAN style="font-size: 13.3333px;"&gt; like SUM(Sales)&lt;/SPAN&gt;-- &lt;SPAN style="color: #575757; text-decoration: underline;"&gt;it works Fine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;If the expression is calculated using COUNT(DISTINCT ) like Count(Distinct Orders)-- &lt;SPAN style="text-decoration: underline;"&gt;it DOESN'T works Fine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the theoritical explanation for my requirement, so i am sharing an application using AdventureWorks as my data source&lt;/P&gt;&lt;P&gt;The calculated dimensions used in the Application are just for reference, in my original apllication i have got Year and Month fields&lt;/P&gt;&lt;P&gt;Please help me out !! !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981670#M335106</guid>
      <dc:creator />
      <dc:date>2015-10-28T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Sum Incorrect in Pivot Table with multiple dimensions included</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981671#M335107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to see as the partial sum? The distinct count of orders for the dimension value or the sum of the counts of the detail records? The first is what you have and it will be correct. The second requires using the aggr function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(aggr(count(distinct Orders), &lt;EM&gt;MyDim1, MyDim2, ..., MyDimX)&lt;/EM&gt;) &lt;/P&gt;&lt;P&gt;where MyDim1...MyDimX are the dimensions of your pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981671#M335107</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-28T17:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Sum Incorrect in Pivot Table with multiple dimensions included</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981672#M335108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Gysbert Wassenaar,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time, I have seen this function being suggested by the Community members in the other discussions and so i have used the same formula as suggested like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(aggr(count(distinct Orders), &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;MyDim1, MyDim2, ..., MyDimX)&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So in my case i have written expression like below &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=IF(GetCurrentField([Cat/Prod]) = 'EnglishProductName',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(count(distinct Orders),Category,$(=GetCurrentFieldNamae(GroupName)),Year,Month),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(count(distinct Orders),Category,$(=GetCurrentFieldNamae(GroupName)),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EnglishProductName&lt;/SPAN&gt;,Year,Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the issue is with the 'TOTAL' which is not displaying correct based on the change of my cyclic dimension row values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 05:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Sum-Incorrect-in-Pivot-Table-with-multiple-dimensions/m-p/981672#M335108</guid>
      <dc:creator />
      <dc:date>2015-10-29T05:13:39Z</dc:date>
    </item>
  </channel>
</rss>

