<?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: 'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140117#M521979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a bug. You're using an expression that's not a pure sum that be totaled as-is at every level. The expressions is also evaluated at the total levels and the result there is not the same as the sum of the results at the detailed level because of your if statement. What you want is the sum of an aggregation expression: sum( aggr( ...your_expression...), Type, Date, Description)): &lt;SPAN style="font-size: 10pt;"&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Profit&lt;/SPAN&gt;&amp;lt;0,0,&lt;SPAN style="color: #800000;"&gt;Profit&lt;/SPAN&gt;*.3) ,&lt;SPAN style="color: #800000;"&gt;Type&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Description&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 07:11:57 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-05-25T07:11:57Z</dc:date>
    <item>
      <title>'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140116#M521978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I encountered below 'bug' when trying to develop some reports for my client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Straight Table &amp;amp; Pivot Table subtotal &amp;amp; total are wrong (circled in red). They are based upon 'expression' instead of 'sum of total' which cannot be controlled by us :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125662_test.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please help. I also attach the qvw file for easy reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Eric&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 01:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140116#M521978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T01:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: 'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140117#M521979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a bug. You're using an expression that's not a pure sum that be totaled as-is at every level. The expressions is also evaluated at the total levels and the result there is not the same as the sum of the results at the detailed level because of your if statement. What you want is the sum of an aggregation expression: sum( aggr( ...your_expression...), Type, Date, Description)): &lt;SPAN style="font-size: 10pt;"&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Profit&lt;/SPAN&gt;&amp;lt;0,0,&lt;SPAN style="color: #800000;"&gt;Profit&lt;/SPAN&gt;*.3) ,&lt;SPAN style="color: #800000;"&gt;Type&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Description&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 07:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140117#M521979</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-05-25T07:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140118#M521980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 07:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140118#M521980</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-05-25T07:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140119#M521981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wassenaar! It works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 07:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140119#M521981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: 'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140120#M521982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mahesh for your reply! By the way, I only have personal version so cannot open your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 07:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140120#M521982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: 'Bug' in Straight Table &amp; Pivot Table Subtotal &amp; Total</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140121#M521983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be easy to understand..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this expression to calculate your tax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(Profit&amp;gt;0,Profit* .3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with your expression is it is taking sum of all the items although you are replacing them with '0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 07:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Straight-Table-Pivot-Table-Subtotal-Total/m-p/1140121#M521983</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2016-05-25T07:37:31Z</dc:date>
    </item>
  </channel>
</rss>

