<?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 Expression Total is erratic in Pivot Table, while Straight Table is OK in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579169#M679783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a strange phenomena in QV. While expression results in correct result, the total sum does not result in the correct summation per individual lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression, we have such expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if(count({&amp;lt;DocDate={"&amp;gt;=$(=MonthStart(Today(0),$(=-Y)))&amp;lt;=$(=MonthEnd(Today(0),$(=-Y)))"}&amp;gt;} DocDate)&amp;gt;0 ,sum(Weight) )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y is an input value. Initialised as 1.&lt;/P&gt;&lt;P&gt;The result should be 818, but it indicates in 7,463 in Pivot Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you possibly open the attached file, upper is straight table, with &lt;EM&gt;total mode&lt;/EM&gt; 'Sum of Rows'. This results in 818. While Pivot Table result in 7565. In fact, if we export into Excel, we only have 818! &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error 2.jpg" class="jive-image" src="/legacyfs/online/57325_Error 2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;*Since this is only on of the columns in a report in the production release, Pivot table is mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate for your support. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 13:22:10 GMT</pubDate>
    <dc:creator>atsushi_saijo</dc:creator>
    <dc:date>2014-04-15T13:22:10Z</dc:date>
    <item>
      <title>Expression Total is erratic in Pivot Table, while Straight Table is OK</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579169#M679783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a strange phenomena in QV. While expression results in correct result, the total sum does not result in the correct summation per individual lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression, we have such expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if(count({&amp;lt;DocDate={"&amp;gt;=$(=MonthStart(Today(0),$(=-Y)))&amp;lt;=$(=MonthEnd(Today(0),$(=-Y)))"}&amp;gt;} DocDate)&amp;gt;0 ,sum(Weight) )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y is an input value. Initialised as 1.&lt;/P&gt;&lt;P&gt;The result should be 818, but it indicates in 7,463 in Pivot Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you possibly open the attached file, upper is straight table, with &lt;EM&gt;total mode&lt;/EM&gt; 'Sum of Rows'. This results in 818. While Pivot Table result in 7565. In fact, if we export into Excel, we only have 818! &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error 2.jpg" class="jive-image" src="/legacyfs/online/57325_Error 2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;*Since this is only on of the columns in a report in the production release, Pivot table is mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate for your support. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579169#M679783</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2014-04-15T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Total is erratic in Pivot Table, while Straight Table is OK</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579170#M679784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atsushi ,&lt;/P&gt;&lt;P&gt;This a normal behavior, in a pivot table the total is calculated always as an expression total and not as a sum of rows What you have to do to get the same result as in the straight table is to modify the expression to incorporate the sum on it like in&amp;nbsp; your modified document attached.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579170#M679784</guid>
      <dc:creator>cfz</dc:creator>
      <dc:date>2014-04-15T13:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Total is erratic in Pivot Table, while Straight Table is OK</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579171#M679785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate for the correction. Yes this is the desired result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(aggr(if(count({&amp;lt;DocDate = {"&amp;gt;=$(=MonthStart(Today(0),$(=-X)))&amp;lt;=$(=MonthEnd(Today(0),$(=-X)))"}&amp;gt;} DocDate)&amp;gt;0 , sum(Weight) ),ProductSerial))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atsushi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Total-is-erratic-in-Pivot-Table-while-Straight-Table/m-p/579171#M679785</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2014-04-15T13:44:01Z</dc:date>
    </item>
  </channel>
</rss>

