<?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: Sum of Variable isn't returning a total sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412856#M33234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not necessary.... have you given it a try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2017 15:30:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-17T15:30:52Z</dc:date>
    <item>
      <title>Sum of Variable isn't returning a total sum</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412853#M33231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a measure, Amt, with 12 values (1 for each year). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I created a variable for Amt, (because for some reason nothing would work with calling the measure directly)&lt;/P&gt;&lt;P&gt;e_Amt = Above(sum([Amt],0,1))&amp;nbsp; // returns 12 values&amp;nbsp; &amp;lt;&amp;lt;&lt;SPAN style="font-size: 10pt;"&gt; If there is a better way to get all values in a measure, I'd love to know. I tried just calling [Amt] for the variable and that didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More variables: &lt;/P&gt;&lt;P&gt;3yrMA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = rangeavg(above(sum[Amt]),1,3)) // returns 11 values&lt;/P&gt;&lt;P&gt;3yrMA_Resid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $(e_Amt)-$(e_3yrMA) // returns 11 values&lt;/P&gt;&lt;P&gt;3yrMA_ResidSqr = sqr($(3yrMA_Resid)) // returns 11 values&lt;/P&gt;&lt;P&gt;3yrMA_RSS = sum($(3yrMA_ResidSqr)) // returns nothing &lt;/P&gt;&lt;P&gt;3yrMA_RSS = sum("$(3yrMA_ResidSqr)") // returns zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want the RSS to be the sum of all of the squared residuals, but as noted above, my attempts are unsuccessful. Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412853#M33231</guid>
      <dc:creator>doyleax123</dc:creator>
      <dc:date>2017-08-16T18:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Variable isn't returning a total sum</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412854#M33232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3yrMA_RSS = &lt;SPAN style="color: #ff0000;"&gt;Sum(3yrMA_ResidSqr)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 11:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412854#M33232</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-17T11:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Variable isn't returning a total sum</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412855#M33233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Since 3yrMA_ResidSqr is a variable, doesn't it need to be referenced like $(3yrMA_ResidSqr) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412855#M33233</guid>
      <dc:creator>doyleax123</dc:creator>
      <dc:date>2017-08-17T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Variable isn't returning a total sum</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412856#M33234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not necessary.... have you given it a try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-Variable-isn-t-returning-a-total-sum/m-p/1412856#M33234</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-17T15:30:52Z</dc:date>
    </item>
  </channel>
</rss>

