<?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: Subtotal Incorrect in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106115#M16665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="j-author-info" style="margin: 0 0 0 6px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I got it. the solution was to add sum aggr around the whole IF:&lt;/P&gt;&lt;P class="j-author-info" style="margin: 0 0 0 6px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="j-author-info" style="margin: 0 0 0 6px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;Sum(Aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(if(seg='Al',zo,if(se = 'Ju',Pa,Agr2))= 'S'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And if(seg='Al'or seg='So',Loc,if(seg = 'Ju',LoJuPa)) = 'C',0,&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;If(if(seg='Al',zo,if(seg = 'Ju',Pa,Agr2))= 'C'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And if(seg='Al'or seg='So',Loc,if(seg = 'Ju',LoJuPa)) = 'C',&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;Sum(Aggr(sum(plan),Loc)),&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;num(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(sum(if(idPer=1,plan*1.19)/Mol),sum(if(idPer=2, plan/1.19)))*$(xUfMaxMes)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,if(Vis='UF','#.##0,0000' ,'#.##0')))),Loc,Agr2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 22:46:49 GMT</pubDate>
    <dc:creator>pgalvezt</dc:creator>
    <dc:date>2018-07-04T22:46:49Z</dc:date>
    <item>
      <title>Subtotal Incorrect in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106113#M16663</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;I have change the position 1 value in the budget, that´s work fine, but the problem is that the new subtotal don´t show the real value. (Its not doing anything). 114506 was in the "So" position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached an image for better visualization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(if(seg='Al',zo,if(se = 'Ju',Pa,Agr2))= 'S'&lt;/P&gt;&lt;P&gt;And if(seg='Al'or seg='So',Loc,if(seg = 'Ju',LoJuPa)) = 'C',0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(if(seg='Al',zo,if(seg = 'Ju',Pa,Agr2))= 'C'&lt;/P&gt;&lt;P&gt;And if(seg='Al'or seg='So',Loc,if(seg = 'Ju',LoJuPa)) = 'C',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(sum(plan),Loc)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(&lt;/P&gt;&lt;P&gt;RangeSum(sum(if(idPer=1,plan*1.19)/Mol),sum(if(idPer=2, plan/1.19)))*$(xUfMaxMes)&lt;/P&gt;&lt;P&gt;,if(Vis='UF','#.##0,0000' ,'#.##0'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 19:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106113#M16663</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2018-07-03T19:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Incorrect in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106114#M16664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be:&lt;/P&gt;&lt;P&gt;Sum(aggr(distinct sum(plan),loc))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 07:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106114#M16664</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-07-04T07:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Incorrect in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106115#M16665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="j-author-info" style="margin: 0 0 0 6px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I got it. the solution was to add sum aggr around the whole IF:&lt;/P&gt;&lt;P class="j-author-info" style="margin: 0 0 0 6px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="j-author-info" style="margin: 0 0 0 6px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;Sum(Aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(if(seg='Al',zo,if(se = 'Ju',Pa,Agr2))= 'S'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And if(seg='Al'or seg='So',Loc,if(seg = 'Ju',LoJuPa)) = 'C',0,&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;If(if(seg='Al',zo,if(seg = 'Ju',Pa,Agr2))= 'C'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And if(seg='Al'or seg='So',Loc,if(seg = 'Ju',LoJuPa)) = 'C',&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;Sum(Aggr(sum(plan),Loc)),&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;num(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(sum(if(idPer=1,plan*1.19)/Mol),sum(if(idPer=2, plan/1.19)))*$(xUfMaxMes)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,if(Vis='UF','#.##0,0000' ,'#.##0')))),Loc,Agr2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 22:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-Incorrect-in-pivot-table/m-p/106115#M16665</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2018-07-04T22:46:49Z</dc:date>
    </item>
  </channel>
</rss>

