<?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: Wrong partial sums in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185062#M383538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in stright table ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto expression table and select Sum o Row,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u ll get solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not try to share sample data to get better solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ST Total.PNG" class="jive-image image-1" src="/legacyfs/online/139183_ST Total.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;-Nagarjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2016 15:56:05 GMT</pubDate>
    <dc:creator>nagarjuna_kotha</dc:creator>
    <dc:date>2016-09-29T15:56:05Z</dc:date>
    <item>
      <title>Wrong partial sums</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185059#M383535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;I created a qvw and on the expressions I have multiple IF statements in order to calculate the data&amp;nbsp; as shown on the attached picture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;The problem is that when I ask for partial Sums on pivot table or totals on straight table, the totals are wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;What I am loosing?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;expression eg. :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF((PLAN_START_YEAR_MONTH-YEAR_MONTH)=0,sum(PLResult_EndFishNo),&lt;/P&gt;&lt;P&gt;IF((Sum(PLResult_EndFishNo)=0),sum(COSTMAIN_EndFishNo),(Sum(PLResult_EndFishNo)))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first IF statement is applied on the 8th month .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;&lt;IMG __jive_id="138971" alt="Screenshot_6.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138971_Screenshot_6.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 09:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185059#M383535</guid>
      <dc:creator />
      <dc:date>2016-09-28T09:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong partial sums</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185060#M383536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(AGGR((IF((PLAN_START_YEAR_MONTH-YEAR_MONTH)&amp;lt;=0,SUM(PLResult_EndFishNo),&lt;/P&gt;&lt;P&gt;IF((PLAN_START_YEAR_MONTH-YEAR_MONTH)&amp;gt;0,SUM(COSTMAIN_EndFishNo)))),THEYEAR,THEMONTH))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185060#M383536</guid>
      <dc:creator />
      <dc:date>2016-09-29T11:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong partial sums</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185061#M383537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this: sum(aggr( &lt;EM&gt;...original expression here ...&lt;/EM&gt; , YEAR, MONTH))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 15:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185061#M383537</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-09-29T15:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong partial sums</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185062#M383538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in stright table ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto expression table and select Sum o Row,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u ll get solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not try to share sample data to get better solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ST Total.PNG" class="jive-image image-1" src="/legacyfs/online/139183_ST Total.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;-Nagarjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 15:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185062#M383538</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2016-09-29T15:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong partial sums</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185063#M383539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try wraping it with Sum(Aggr(...., YEAR, MONTH))&lt;/P&gt;&lt;P&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 style="color: #ff0000;"&gt;Sum(Aggr(&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;IF((PLAN_START_YEAR_MONTH-YEAR_MONTH)=0,sum(PLResult_EndFishNo),&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;IF((Sum(PLResult_EndFishNo)=0),sum(COSTMAIN_EndFishNo),(Sum(PLResult_EndFishNo))))&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 style="color: #ff0000;"&gt;, YEAR, MONTH))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185063#M383539</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T16:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong partial sums</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185064#M383540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this from the beginning.It is wrong due to different fields that must be aggregated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 10:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-partial-sums/m-p/1185064#M383540</guid>
      <dc:creator />
      <dc:date>2016-10-04T10:19:20Z</dc:date>
    </item>
  </channel>
</rss>

