<?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: Totals not correct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257480#M863732</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;try below.&lt;/P&gt;&lt;P&gt;1: sum(aggr(sum(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(total_dec_app &amp;gt; customer_id_count,total_dec_app - customer_id_count,0),store))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;2: &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum(total_dec_app) &amp;gt; sum(aggr(sum(customer_id_count),store)),&lt;/STRONG&gt;sum(aggr(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(total_dec_app)&lt;/STRONG&gt;,store))&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; - sum(aggr(sum(customer_id_count),store)),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jan 2017 05:52:51 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2017-01-02T05:52:51Z</dc:date>
    <item>
      <title>Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257477#M863729</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 have used pivot table but the totals are not matching.Below is the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(sum(total_dec_app) &amp;gt; sum(aggr(sum(customer_id_count),store)),sum(total_dec_app) - sum(aggr(sum(customer_id_count),store)),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the image for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148057_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&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/Totals-not-correct/m-p/1257477#M863729</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257478#M863730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say Total is not matched, You may describe more. And then, I would recommend to share sample data and expected output which demonstrates the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression seems okay to me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 04:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257478#M863730</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-02T04:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257479#M863731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the total is not matching..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 05:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257479#M863731</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-01-02T05:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257480#M863732</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;try below.&lt;/P&gt;&lt;P&gt;1: sum(aggr(sum(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(total_dec_app &amp;gt; customer_id_count,total_dec_app - customer_id_count,0),store))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;2: &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum(total_dec_app) &amp;gt; sum(aggr(sum(customer_id_count),store)),&lt;/STRONG&gt;sum(aggr(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(total_dec_app)&lt;/STRONG&gt;,store))&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; - sum(aggr(sum(customer_id_count),store)),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 05:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257480#M863732</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-01-02T05:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257481#M863733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you post your sample data and elaborate your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest to use dimensionality() for the totals fields. It will be helpful for grouping and using aggr efficiently in pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 06:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257481#M863733</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2017-01-02T06:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257482#M863734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you check the below EXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Calibri','sans-serif';"&gt;if(sum(total_dec_app) &amp;gt; aggr(sum(customer_id_count),store),sum(total_dec_app) - aggr(sum(customer_id_count),store),0)&lt;/STRONG&gt;&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;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 12:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257482#M863734</guid>
      <dc:creator>satheshreddy</dc:creator>
      <dc:date>2017-01-02T12:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257483#M863735</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;It is a bad approach to use if statements in your expressions as it is killing the app performance. Looking at the expression it might work as per design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please create a copy of your table and remove the store dimension. Then you will likely see the subtotals as you currently see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can add two expressions to see the behavior of the complete formula.statement. Expression 1 only contains: &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(total_dec_app)&lt;/STRONG&gt;. expression 2 contains &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(aggr(sum(customer_id_count),store))&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthijs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 18:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257483#M863735</guid>
      <dc:creator />
      <dc:date>2017-01-02T18:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Totals not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257484#M863736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many dimensions do you have in your pivot table? Just 1 or are there more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 22:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-not-correct/m-p/1257484#M863736</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-02T22:39:39Z</dc:date>
    </item>
  </channel>
</rss>

