<?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 Total Mode (SUM) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Mode-SUM/m-p/308369#M497376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a straight table will a few expressions calculating the required fields. One of these expressions is returning me the right value on each record but the wrong value in total. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the "Total mode" on the straight table to Sum the total value is right now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue now is that I need the total from the above in the neted expression to work out %. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the function required is aggr but not 100 sure how to get this working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (sum(A)/sum(TOTAL &amp;lt;CUST&amp;gt;&amp;nbsp; A))*sum(TOTAL &amp;lt;CUST_NAME&amp;gt;&amp;nbsp; B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(isnull(Sum(NET)/sum(A))=-1,0,Sum(NET)/sum(A))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(isnull(Sum(NET)/sum(A))=-1,0,Sum(NET)/sum(A))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;sum(B)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;values in the records are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0.1&lt;/P&gt;&lt;P&gt;0.4&lt;/P&gt;&lt;P&gt;0.5&lt;/P&gt;&lt;P&gt;0.6&lt;/P&gt;&lt;P&gt;0.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total of 2.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i put the expression on a text box the answer is zero. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 15:13:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-09T15:13:59Z</dc:date>
    <item>
      <title>Total Mode (SUM)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Mode-SUM/m-p/308369#M497376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a straight table will a few expressions calculating the required fields. One of these expressions is returning me the right value on each record but the wrong value in total. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the "Total mode" on the straight table to Sum the total value is right now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue now is that I need the total from the above in the neted expression to work out %. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the function required is aggr but not 100 sure how to get this working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (sum(A)/sum(TOTAL &amp;lt;CUST&amp;gt;&amp;nbsp; A))*sum(TOTAL &amp;lt;CUST_NAME&amp;gt;&amp;nbsp; B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(isnull(Sum(NET)/sum(A))=-1,0,Sum(NET)/sum(A))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(isnull(Sum(NET)/sum(A))=-1,0,Sum(NET)/sum(A))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;sum(B)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;values in the records are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0.1&lt;/P&gt;&lt;P&gt;0.4&lt;/P&gt;&lt;P&gt;0.5&lt;/P&gt;&lt;P&gt;0.6&lt;/P&gt;&lt;P&gt;0.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total of 2.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i put the expression on a text box the answer is zero. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 15:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Mode-SUM/m-p/308369#M497376</guid>
      <dc:creator />
      <dc:date>2011-11-09T15:13:59Z</dc:date>
    </item>
  </channel>
</rss>

