<?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 Regarding Total Sum in a Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052671#M353184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;I appreciate your time!&lt;/P&gt;&lt;P&gt;I have a query on how the grant total works in a straight table, could you have a look at the attached application and please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 13:37:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-08T13:37:41Z</dc:date>
    <item>
      <title>Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052671#M353184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;I appreciate your time!&lt;/P&gt;&lt;P&gt;I have a query on how the grant total works in a straight table, could you have a look at the attached application and please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 13:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052671#M353184</guid>
      <dc:creator />
      <dc:date>2016-01-08T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052672#M353185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 13:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052672#M353185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T13:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052673#M353186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Properties -&amp;gt; Expression -&amp;gt; Total Mode -&amp;gt; Tick Sum of Row option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attachment..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 13:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052673#M353186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T13:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052674#M353187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiruthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression1:&lt;/P&gt;&lt;P&gt;Total Amount: 300&lt;/P&gt;&lt;P&gt;Expression used:&amp;nbsp;&amp;nbsp; =aggr(sum(Amount),ProductGroup)&lt;/P&gt;&lt;P&gt;You need to enclose the aggr function with one more aggregation function. If not it doesn't make any difference.&lt;/P&gt;&lt;P&gt;If you change the expression to this:&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(aggr(sum(Amount),ProductGroup))&lt;/P&gt;&lt;P&gt;It will give you 600 as Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression2:&lt;/P&gt;&lt;P&gt;Total Amount: 500&lt;/P&gt;&lt;P&gt;Expression used:&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Amount)&lt;/P&gt;&lt;P&gt;When the link happens between Fact table and Dimension table, your "Product" field in Dimension table is not unique.&lt;/P&gt;&lt;P&gt;"Eco Milk" is repeating. So, the Amount 100 will go to both "DairyProducts" and "EcoProducts" which actually makes the total as 600.&lt;/P&gt;&lt;P&gt;But the total you see is only 500 as the original total if you take Amount field alone is only 500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 13:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052674#M353187</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2016-01-08T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052675#M353188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;Thanks so much for all your response and I sincerely appreciate your time. I am not sure I am right or wrong:-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question&amp;nbsp; from my attached application is that both the expression denotes the samelogic for the given dimension, so how the virtual table get calculated behind to give a correct total sum of 500 for expression sum(Amount) but it is wrong in the case of expression aggr(sum(Amount), Product group)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 14:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052675#M353188</guid>
      <dc:creator />
      <dc:date>2016-01-08T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052676#M353189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned in the above post, correct way of using aggr in the expression which you are trying to get is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(aggr(sum(Amount), Product group)) rather than &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;aggr(sum(Amount), Product group).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(sum(Amount), Product group) will first add the amount according to Product Group and create a virtual table and leave as it is. So, even your total stopped at 300.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(Amount) is adding up the total Amount accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 16:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052676#M353189</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2016-01-08T16:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052677#M353190</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's just because your Product "Eco Milk" is in two Product Group "DairyProducts" and "EcoProducts"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 16:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052677#M353190</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2016-01-08T16:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Total Sum in a Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052678#M353191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I read it here..&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;Aggregation will produce the virtual table exactly one row per distinct Combination"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The below points are based on my Understanding..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;In this case, you have used&amp;nbsp; the expression :&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;aggr(sum(Amount), Product group)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;See the below Virtual Table, Amount is 300 and 300... so the distinct value also &lt;STRONG&gt;300&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If you change your Amount value as 100, 50, 200... &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;in the total bar you will get the Null Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;IMG alt="Picture1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111077_Picture1.jpg" style="height: 370px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, we do like this...The below one will give result as &lt;STRONG&gt;600 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Sum(aggr(sum(Amount), Product group))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;2. &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="text-decoration: underline;"&gt;Sum(Amount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You have two tables..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picture1.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/111078_Picture1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If you do the Left join, you will get result as &lt;STRONG&gt;600..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If no, You need to do above mentioned expression : &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Sum(aggr(sum(Amount), Product group)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or Enable the Total Mode as 'Sum' in Expression Tab&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope this will help a Bit..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 16:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Total-Sum-in-a-Straight-table/m-p/1052678#M353191</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-01-08T16:56:59Z</dc:date>
    </item>
  </channel>
</rss>

