<?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: Valuelist issue when using sum, aggr, above functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915875#M981887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it seems due to data complexity issue, I can't use "NODISTINCT". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to assign that value into some kind of variable, array, or something and use it in other calculations within the same list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 19:23:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-07T19:23:10Z</dc:date>
    <item>
      <title>Valuelist issue when using sum, aggr, above functions</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915871#M981882</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;I'm using Valuelist for "Cash Flow" data visualization in a Pivot Table. However, in the first row I needed to rollout the running balance over the Month dimension. So I had to use a combination of sum, aggr, rangesum, above functions to get it done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(aggr(rangesum(above(total sum({&amp;lt;Month=&amp;gt;}Amount),0,RowNo())),Month))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next row I needed to use that running amount -in the first row- to calculate something else like the ending balance. But when I tried to use the same expression it wasn't returning any value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here are my questions:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1. What could the reason for this behavior? Is there any work-around? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. How can I use the value in the first row or any certain row to calculate something in a different row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915871#M981882</guid>
      <dc:creator />
      <dc:date>2015-08-07T16:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist issue when using sum, aggr, above functions</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915872#M981883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(ValueList('acc1','acc2','acc3'),'acc1','acc2','acc3'),&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; rangesum(above(total sum({&amp;lt;Month=&amp;gt;}Amount),0,RowNo())),Month))&lt;/P&gt;&lt;P&gt;,sum(aggr(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; rangesum(above(total sum({&amp;lt;Month=&amp;gt;}Amount),0,RowNo())),Month))+1&lt;/P&gt;&lt;P&gt;,sum(aggr(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; rangesum(above(total sum({&amp;lt;Month=&amp;gt;}Amount),0,RowNo())),Month))+2&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915872#M981883</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-07T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist issue when using sum, aggr, above functions</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915873#M981885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, for some reason the "NODISTINCT" it works on the sample data but giving odd numbers in the real data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915873#M981885</guid>
      <dc:creator />
      <dc:date>2015-08-07T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist issue when using sum, aggr, above functions</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915874#M981886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample QVW that is closer to your real setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 17:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915874#M981886</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-07T17:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist issue when using sum, aggr, above functions</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915875#M981887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it seems due to data complexity issue, I can't use "NODISTINCT". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to assign that value into some kind of variable, array, or something and use it in other calculations within the same list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-issue-when-using-sum-aggr-above-functions/m-p/915875#M981887</guid>
      <dc:creator />
      <dc:date>2015-08-07T19:23:10Z</dc:date>
    </item>
  </channel>
</rss>

