<?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: Problem with Partial sum in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210423#M875347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to solve it in the expression and not in the dimension, that is what makes it slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following expression:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;PlugBal =&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: black;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;{"&amp;lt;=$(=$(eValue))"}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} GLBal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you get rid off the calculated dimensions with the aggregations and use the regular fieldname only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gr. Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Mar 2017 13:31:12 GMT</pubDate>
    <dc:creator>marioglasmv</dc:creator>
    <dc:date>2017-03-05T13:31:12Z</dc:date>
    <item>
      <title>Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210416#M875340</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 am facing one issue while performing partial sum on Pivot table.&lt;/P&gt;&lt;P&gt;I am having data in below table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;" width="64"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="64"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;GLBal&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="64"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;PlugBal&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="64"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A001&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;15000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2300&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Push&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A002&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;16000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2500&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Shankar&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A001&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;22000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Jackson&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A001&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;160&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Sushma&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying that if GLBal&amp;gt;PlugBal then I want to generate a Flag 'Y' and if no then I don't want that record in Pivot table.&lt;/P&gt;&lt;P&gt;And I want subtotal also based on Account and Name.&lt;/P&gt;&lt;P&gt;Solution is simple that in this scenario last record should not come in pivot table. I am getting the results as I want but when I am applying partial sum for subtotal then it is adding GLBal=160 also. This is incorrect. You can see in Red box that total should be 22000+15000 = 37000. Expression is removing last record from pivot table but it is adding the value in total sum.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143074_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I am attaching QVW and excel to see the expression and data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this.&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/Problem-with-Partial-sum-in-Pivot-table/m-p/1210416#M875340</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210417#M875341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attached file for the solution. Hope this helps....&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot_01.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143068_Pivot_01.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 02:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210417#M875341</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-07T02:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210418#M875342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thirumala. It worked..Great..&lt;/P&gt;&lt;P&gt;Thanks for your help. Sorry for writing after a long time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 00:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210418#M875342</guid>
      <dc:creator />
      <dc:date>2017-01-16T00:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210419#M875343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome....Glad it worked out the way you want it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 01:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210419#M875343</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-01-16T01:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210420#M875344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thirumala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing one issue with this partial sum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of using expression for every dimension(Account, Name and GLBalance), performance of this report is very slow. Can't we use simple dimention in place of calculated dimensions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Pushkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 04:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210420#M875344</guid>
      <dc:creator />
      <dc:date>2017-03-05T04:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210421#M875345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you can do is create the Flag Y/N in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tablename:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Account, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GLBal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PlugBal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(GLBal &amp;gt; PlugBal, 'Y', 'N') AS Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; .....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use set analysis in your expression like &lt;STRONG&gt;SUM({&amp;lt;Flag = {'Y'}&amp;gt;} GLBal)&lt;/STRONG&gt; so you can avoid you calculated dimensions. It will work a lot faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 05:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210421#M875345</guid>
      <dc:creator>marioglasmv</dc:creator>
      <dc:date>2017-03-05T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210422#M875346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation is little different now. I can't define flag in script. Actually i am calculating flag now based on user input. I have one input box at UI where user is entering a no. Based on that value i am writing the condition for flag that if PlugBal&amp;lt;"eValue" then Y else N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please suggest now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pushkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 09:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210422#M875346</guid>
      <dc:creator />
      <dc:date>2017-03-05T09:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Partial sum in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210423#M875347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to solve it in the expression and not in the dimension, that is what makes it slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following expression:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;PlugBal =&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: black;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;{"&amp;lt;=$(=$(eValue))"}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} GLBal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you get rid off the calculated dimensions with the aggregations and use the regular fieldname only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gr. Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 13:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Partial-sum-in-Pivot-table/m-p/1210423#M875347</guid>
      <dc:creator>marioglasmv</dc:creator>
      <dc:date>2017-03-05T13:31:12Z</dc:date>
    </item>
  </channel>
</rss>

