<?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: Re: Display Total Sum(Column) value in all rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487776#M182227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks your solution helps me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had one more question how can we get sum value based on aggr. Please find the attached sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 09:03:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-10T09:03:10Z</dc:date>
    <item>
      <title>Display Total Sum(Column) value in all rows</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487774#M182225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached sample app. And let me know how can i get TOTAL SUM(Column) in all rows in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487774#M182225</guid>
      <dc:creator />
      <dc:date>2014-01-09T13:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display Total Sum(Column) value in all rows</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487775#M182226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;perhaps this?&lt;/P&gt;&lt;P&gt;sum(total aggr(sum(C1) - Above(Sum(C1)), C1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 16:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487775#M182226</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-09T16:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Display Total Sum(Column) value in all rows</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487776#M182227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks your solution helps me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had one more question how can we get sum value based on aggr. Please find the attached sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 09:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487776#M182227</guid>
      <dc:creator />
      <dc:date>2014-01-10T09:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Display Total Sum(Column) value in all rows</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487777#M182228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added a dimension to your script,&lt;/P&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487777#M182228</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-10T11:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Display Total Sum(Column) value in all rows</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487778#M182229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Grossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had done small change to your expression in test app that also worked fine without having of COUNTER column as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOURS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : sum(TOTAL &amp;lt;L&amp;gt; aggr((C1) - above((C1)), L,COUNTER))&lt;/P&gt;&lt;P&gt;CHANGED : sum(TOTAL &amp;lt;L&amp;gt; aggr((C1) - above((C1)), L,&lt;STRONG&gt;C1&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changed expression in real data but it is getting different values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please find the attached sample app of real data and mentioned in text object which&amp;nbsp; values should get for each LOT column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487778#M182229</guid>
      <dc:creator />
      <dc:date>2014-01-10T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: Display Total Sum(Column) value in all rows</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487779#M182230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;starting from your doc, "Sample.qvw I did 2 other docs&lt;/P&gt;&lt;P&gt;"Sample - qvd gen.qvw": reads your Sample.qvw and makes 2 qvd, MainData.qvd and DimLot.qvd&lt;/P&gt;&lt;P&gt;"Sample - final.qvw":&amp;nbsp; reads the 2 previuos qvd; here you can see the result you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;because it seems to me the ABOVE function in AGGR by LOT and BC_DEV works as expected&amp;nbsp; only if the BC_DEV field is ordered (you can check the load order in listbox); I added the COLCHECK column in "Sample.qvw" and "Sample - final.qvw" to verify this. &lt;/P&gt;&lt;P&gt;To get the expected result you need to be sure the BC_DEV field is ordered (asc) in your qvw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post for order in aggr&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-message-small" data-containerid="2051" data-containertype="14" data-objectid="287297" data-objecttype="2" href="http://community.qlik.com/message/287297#287297"&gt;http://community.qlik.com/message/287297#287297&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jan 2014 12:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Total-Sum-Column-value-in-all-rows/m-p/487779#M182230</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-12T12:03:28Z</dc:date>
    </item>
  </channel>
</rss>

