<?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: RangeSum(Above(RangeSum(Above( Why need repeat twice ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136352#M630885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, I don't understand what you meant&amp;nbsp; with "break the expression into 2"... Make the expression work for 2 months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I will need a sample to try that or we will spend a lot of time with guessings but here goes one guess:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Above(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, 0, RowNo()),&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;year, month, &lt;/STRONG&gt;&lt;/SPAN&gt;aR={aR}&amp;gt;} TOTAL Aggr(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, YearMonth))&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2016 07:35:56 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-08-02T07:35:56Z</dc:date>
    <item>
      <title>RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136343#M630876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression from Sunny :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(RangeSum&lt;/P&gt;&lt;P&gt;(Above(&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;year, month, aR={aR}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;[Amount]*1)/Rate, 0, RowNo()))),&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum( &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;aR={aR}&amp;gt;&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;TOTAL Aggr(Sum(&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;year, month, aR={aR}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;[Amount]*1)/Rate, YearMonth&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above expression work fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one share with me why it repeat twice on RangeSum(Above :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif;"&gt;&lt;BR style="color: #545352; font-size: 15.924px;" /&gt;&lt;SPAN style="color: #545352; font-size: 15.924px;"&gt;RangeSum(Above(RangeSum(Above(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545352; font-size: 15.924px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545352; font-size: 15.924px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545352; font-size: 15.924px;"&gt;Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 03:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136343#M630876</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-06-29T03:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136344#M630877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;qvf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 03:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136344#M630877</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-06-29T03:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136345#M630878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea. Have you tried modifying the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136345#M630878</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-07-29T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136346#M630879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jona&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression from sunny , I don't understand how the expression work , so I cannot modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136346#M630879</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-07-29T10:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136347#M630880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, the inside RangeSum() sums the values returned by Above, wich returns a value for each of the rows above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outside RangeSum sums the values returned to the inside RangeSum and the result returned by the Sum(Aggr()) (wich has a minus sign, so it really substracts)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136347#M630880</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-29T10:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136348#M630881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your explain , not so easy to understand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136348#M630881</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-07-29T10:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136349#M630882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's hard and I can't test, removing the duplicated RangeSum(Above( it will be:&lt;/P&gt;&lt;P&gt;RangeSum( &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Above(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, 0, RowNo()),&lt;/P&gt;&lt;P&gt; - Sum({&amp;lt;aR={aR}&amp;gt;} TOTAL Aggr(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, YearMonth))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm not sure if this can work, can you try it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136349#M630882</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-29T10:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136350#M630883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great you have try to break the expression into smaller , I will test on Sunday night , as I am going for hiking now .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact this is what I need , as I am not able to get the figure I want for 2 month . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 11:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136350#M630883</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-07-29T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136351#M630884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Hi Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tested your expression , it does not give any error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUt but now I have issue because I am stuck. Don't know how to break the expression into 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 07:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136351#M630884</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-02T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136352#M630885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, I don't understand what you meant&amp;nbsp; with "break the expression into 2"... Make the expression work for 2 months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I will need a sample to try that or we will spend a lot of time with guessings but here goes one guess:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Above(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, 0, RowNo()),&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;year, month, &lt;/STRONG&gt;&lt;/SPAN&gt;aR={aR}&amp;gt;} TOTAL Aggr(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, YearMonth))&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 07:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136352#M630885</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-08-02T07:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136353#M630886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, Why are using duplicates for expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Above(Sum({&amp;lt;year=, month=, aR={aR}&amp;gt;}[Amount]*1)/Rate, 0, RowNo()),&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;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;year=, month=, &lt;/STRONG&gt;&lt;/SPAN&gt;aR={aR}&amp;gt;} TOTAL Aggr(Sum({&amp;lt;year=, month=, aR={aR}&amp;gt;}[Amount]*1)/Rate, YearMonth))&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this, Can i know what are the Year &amp;amp; Months as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 07:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136353#M630886</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-08-02T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136354#M630887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil &amp;amp; Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year &amp;amp; year or Month &amp;amp; month both field are same. ( When i started learn Qlik View , I create this in master cal , and some time i use Year , and some time i use year. For SET expression all i use year ) , so my panel filter is wrong , should have change to year instead of Year.&lt;/P&gt;&lt;P&gt;Thank you for your expression , yesterday i notice some thing wrong with the expression. ( I refer to above expression when i first post the quesrtion ) it does able to compute the month amount , but it unable to compute LY same period amount ). So now it is very messy. i need to stop doing this for a while. and most likely relook again later stage , so that it not discounrage me from playing QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 08:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136354#M630887</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-02T08:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136355#M630888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(RangeSum(Above(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, 0,&lt;STRONG&gt;2&lt;/STRONG&gt;, RowNo()))),&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;aR={aR}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, aR={aR}&amp;gt;}[Amount]*1)/Rate, YearMonth)))&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;As Ruben Explanation why should use something like this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here, 2 Acting like two times of &lt;STRONG&gt;Above(Above(Sum(Sales)))&lt;/STRONG&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;try, and let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 08:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136355#M630888</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-08-02T08:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136356#M630889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copy and paste your expression into Table 2 , it display null value.&amp;nbsp; ( Table 1 using orginal expression , it work fine. ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to make the expression simple . So that i can modify the expression. As i have trouble getting the aP LY value = 3,384,545,900&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no issue in getting YTD value See my Table 3.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 10:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136356#M630889</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-02T10:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136357#M630890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, in that sample your table on the right doesn't have a row above so it's aonly doing the this part of the expression:&lt;/P&gt;&lt;P&gt;-Sum(TOTAL Aggr(Sum({&amp;lt;year, month&amp;gt;}[Amount]*-1), YearMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yo can try it leaving only this as expression, it only sums all the amounts... in a wird thing beacuse it shows the negative of a value multiplied by -1 wich can be simplified to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(TOTAL Aggr(Sum({&amp;lt;year, month&amp;gt;}[Amount]), YearMonth))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And if you want to work based in the (max) year and month selected:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=Date(Max(date)))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=Date(Max(date)))'}&amp;gt;}[Amount]), YearMonth))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For the last year you can sum all values until 12 months before the max date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}[Amount]), YearMonth))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 12:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136357#M630890</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-08-02T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136358#M630891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no issue with YTD amount , but for the LY YTD amount , your expression as below it get correct value when i select manual field = aP ( by org button):-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}[Amount]), YearMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my actual app , I need to insert condition to above expression :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aP = {'aP'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the expression should be :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'},aP = {'aP'}&amp;gt;}[Amount]), YearMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share with me where I go wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'},aP = {'aP'}&amp;gt;}[Amount]), YearMonth))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 18:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136358#M630891</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-02T18:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136359#M630892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank , now it work fine , i using the below expression :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -12))'},aR = {'aR'}&amp;gt;}[Amount]), YearMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -0))'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -0))'},aR = {'aR'}&amp;gt;}[Amount]), YearMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 00:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136359#M630892</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-03T00:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136360#M630893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jona&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for trigger my post on 29 July , after i posted one month with out any reply. immediately 2 person answer to my post , and now i got the solution , i am able to move on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 00:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136360#M630893</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-03T00:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136361#M630894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Nice, I worked with the sample V70 and the CY expression didn't have that condition.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In case aR has more possible values and you want to override user selections to fix 'aR' as the value selected I think you'll need to set the condition in the Sum() enclosing the Aggr():&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -0))'}&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,aR = {'aR'}&lt;/SPAN&gt;&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, date={'&amp;lt;=$(=AddMonths(Max(date), -0))'},aR = {'aR'}&amp;gt;}[Amount]), YearMonth))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136361#M630894</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-08-03T06:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum(Above(RangeSum(Above( Why need repeat twice ?</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136362#M630895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much , i just test the expression , it work fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/227654"&gt;Where to insert aR = {'aR'} into Average aR expression ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About 6 hour ago Sunny help me with the above post , i need to get the Average amount of aR ( Account Receivable ) , Hope you can also advise me if you are free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-Above-RangeSum-Above-Why-need-repeat-twice/m-p/1136362#M630895</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-03T06:43:30Z</dc:date>
    </item>
  </channel>
</rss>

