<?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: Need 'Partial Sums', when Dim has both Count &amp; Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069061#M357196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that was me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad that it worked. Your solution looks a bit more simple, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 17:46:34 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-24T17:46:34Z</dc:date>
    <item>
      <title>Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069055#M357190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Calculated Dimension is as follows (Using a Field &amp;amp; Text):&lt;/P&gt;&lt;P&gt;=Pick(Dim,[Strategic&amp;nbsp; Location],'Open Req')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Expression is (having both Count &amp;amp; Sum):&lt;/P&gt;&lt;P&gt;If(Dim=1,Count($(vAggrFld)),Sum(OpenReq))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Pivot Table. If I select 'Show Partial Sums' in the Presentation tab, I'm getting only the Sum values not the Sum of Rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking something similar to Straight Table - Sum of rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below Expression is also not working..&lt;/P&gt;&lt;P&gt;RangeSum(If(Dim=1,Count($(vAggrFld)),Sum(OpenReq)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069055#M357190</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-24T17:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069056#M357191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand the requirement completely. Do you have a sample you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069056#M357191</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-24T17:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069057#M357192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see that attachment.I'm expecting the 'Total HC' as 1341, which is sum of all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm getting only 72, which is sum of the OpenReq Rows only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069057#M357192</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-24T17:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069058#M357193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Dimensionality=0,&lt;/P&gt;&lt;P&gt;Sum( Aggr( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Dim=1,Count($(vAggrFld)),Sum(OpenReq)), Dim)),&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(Dim=1,Count($(vAggrFld)),Sum(OpenReq))&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[in general, sum-of-rows in pivot tables can be achieved with advanced aggregation. Here, your setting with calculated dimensions is a bit more complex, so if above doesn't work, please post a small sample QVW.]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069058#M357193</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T17:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069059#M357194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Thanks for your response. But the expression didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being inspired by your code, I did the below expression and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;()&amp;lt;&amp;gt;0,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;$(vAggrFld)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;OpenReq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;))&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;$(vAggrFld)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;OpenReq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;))&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069059#M357194</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-24T17:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069060#M357195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sincerely sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just missed the () in the Dimensionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is working. Sorry again.&lt;/P&gt;&lt;P&gt;=If(Dimensionality()=0,&lt;/P&gt;&lt;P&gt;Sum( Aggr( If(Dim=1,Count($(vAggrFld)),Sum(OpenReq)), Dim)),&lt;/P&gt;&lt;P&gt;If(Dim=1,Count($(vAggrFld)),Sum(OpenReq))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069060#M357195</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-24T17:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069061#M357196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that was me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad that it worked. Your solution looks a bit more simple, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069061#M357196</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T17:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need 'Partial Sums', when Dim has both Count &amp; Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069062#M357197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Stefan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Partial-Sums-when-Dim-has-both-Count-Sum/m-p/1069062#M357197</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-24T17:47:11Z</dc:date>
    </item>
  </channel>
</rss>

