<?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: error in sum total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756652#M1030268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your second Expression to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Time to complete]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Time to complete]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Allocation&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;you Need to Change to&amp;nbsp; &lt;STRONG&gt;sum(allocation)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;please check if the result is correct. if not, write what you want to achieve&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 22:08:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-19T22:08:48Z</dc:date>
    <item>
      <title>error in sum total</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756651#M1030267</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;somehow my sum(total is not working in the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 21:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756651#M1030267</guid>
      <dc:creator />
      <dc:date>2015-02-19T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: error in sum total</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756652#M1030268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your second Expression to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Time to complete]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Time to complete]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Allocation&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;you Need to Change to&amp;nbsp; &lt;STRONG&gt;sum(allocation)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;please check if the result is correct. if not, write what you want to achieve&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 22:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756652#M1030268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-19T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: error in sum total</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756653#M1030269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on what you want to calculate... Rudolf's suggestion is one possible way. Other possibilities are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum([Time to complete])/Sum(Total [Time to complete]))*Avg(Allocation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([Time to complete]*Allocation)/Sum(Total [Time to complete])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bottom line is that you cannot have a "naked" field reference in an expression. You need to move it into an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A href="https://community.qlik.com/qlik-blogpost/3235"&gt;It’s all Aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 07:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-sum-total/m-p/756653#M1030269</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-02-20T07:35:27Z</dc:date>
    </item>
  </channel>
</rss>

