<?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: Aggr and Sum in Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-and-Sum-in-Table/m-p/15597#M768974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;might be you need to group your TOTAL type wise&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try below &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(Aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(SUM({&amp;lt;format= &amp;gt; }weight) / SUM(&lt;STRONG&gt;TOTAL&amp;lt;Type&amp;gt;&lt;/STRONG&gt; {&amp;lt;format= &amp;gt; } &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;weight&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(SUM( {&amp;lt;orderdate= {"&amp;gt;=$(=max(obj_date_prod))"}, format=, flag_object={'1'}&amp;gt; } object_value) /100)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,Type,orderdate,format))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 14:59:17 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2018-06-12T14:59:17Z</dc:date>
    <item>
      <title>Aggr and Sum in Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Sum-in-Table/m-p/15595#M768972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Aggr(&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;format= &amp;gt; }weight) / SUM(TOTAL{&amp;lt;format= &amp;gt; } &lt;SPAN style="font-size: 13.3333px;"&gt;weight&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(SUM( {&amp;lt;orderdate= {"&amp;gt;=$(=max(obj_date_prod))"}, format=, flag_object={'1'}&amp;gt; } object_value) /100)&lt;/P&gt;&lt;P&gt;,Type,orderdate,format))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives me the following and it's OK, when I have selected Type = Product 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Type&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;OrderDate&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Format&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Expression&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="80"&gt;3,57%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="80"&gt;Stuff&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;&lt;STRONG&gt;0,12%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="80"&gt;Mix&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;&lt;STRONG&gt;3,45%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I clear my selections for Type, then I see it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Type&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;OrderDate&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Format&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Expression&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;17,63%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="80"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="80"&gt;Stuff&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="80"&gt;&lt;STRONG&gt;4,51%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="80"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="80"&gt;Mix&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="80"&gt;&lt;STRONG&gt;3,54%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="80"&gt;Product 2&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="80"&gt;Other&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="80"&gt;2,10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="80"&gt;Product 3&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="80"&gt;Other 2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="80"&gt;1,50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="80"&gt;Product 4&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="80"&gt;Random&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="80"&gt;3,80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="80"&gt;Product 5&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;28/5/2018&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="80"&gt;Min&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="80"&gt;2,18%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to keep the same value like in table 1 for all my Types?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&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/Aggr-and-Sum-in-Table/m-p/15595#M768972</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Sum in Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Sum-in-Table/m-p/15596#M768973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Sum-in-Table/m-p/15596#M768973</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-12T14:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Sum in Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Sum-in-Table/m-p/15597#M768974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;might be you need to group your TOTAL type wise&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try below &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(Aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(SUM({&amp;lt;format= &amp;gt; }weight) / SUM(&lt;STRONG&gt;TOTAL&amp;lt;Type&amp;gt;&lt;/STRONG&gt; {&amp;lt;format= &amp;gt; } &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;weight&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(SUM( {&amp;lt;orderdate= {"&amp;gt;=$(=max(obj_date_prod))"}, format=, flag_object={'1'}&amp;gt; } object_value) /100)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,Type,orderdate,format))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Sum-in-Table/m-p/15597#M768974</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-06-12T14:59:17Z</dc:date>
    </item>
  </channel>
</rss>

