<?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 showing only at year end in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642717#M47933</link>
    <description>&lt;P&gt;Does this has to be done on the front end? Can we do this in the script?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 20:17:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-11-04T20:17:53Z</dc:date>
    <item>
      <title>Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642624#M47920</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use rangesum and I want to sum just what's happened during that year for the column called "Preferred Returns".&lt;/P&gt;&lt;P&gt;I want also to show that amount in another column (Called "Preferred Returns" too) against the 31/12 of each year.&lt;/P&gt;&lt;P&gt;This is the formula I am using for the circled section (See the picture below):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;above(Rangesum(above(sum(Calls+[Gross Investment Distributions]),0,rowno())),1)*$(vPrefReturnRequired)*((Date#(Date)-above(Date#(Date)))/366)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture Rangesum.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22854iABD9D68A5A7D6EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture Rangesum.PNG" alt="Capture Rangesum.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached you can find the app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you can help me with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642624#M47920</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2024-11-16T19:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642627#M47921</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(left(Date,5)='31/12',
above(Rangesum(above(sum(Calls+[Gross Investment Distributions]),0,rowno())),1)*$(vPrefReturnRequired)*((Date#(Date)-above(Date#(Date)))/366), 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642627#M47921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642629#M47922</link>
      <description>&lt;P&gt;Nope I want to show the Rangesum of that expression against that cell in this way it's only returning the value that is against that cell&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642629#M47922</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-04T16:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642632#M47923</link>
      <description>&lt;P&gt;I am not sure I follow... what would you want to see here if not -29,270?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22855iE7C2B6F9B8AA70E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642632#M47923</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T16:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642635#M47924</link>
      <description>&lt;P&gt;That should be the sum of all the preferred returns for the year (-98,511).&lt;/P&gt;&lt;P&gt;The second one against 31/12/2013 should be around -441,949 ish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642635#M47924</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-04T17:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642641#M47926</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(If(Left(Date, 5) = '31/12', RangeSum(Above(
Above(TOTAL Rangesum(Above(TOTAL Sum(Calls+[Gross Investment Distributions]), 0, RowNo(TOTAL))), 1) * $(vPrefReturnRequired)*((Date#(Date)-Above(TOTAL Date#(Date)))/366), 0, RowNo(TOTAL))), 0), Year, Date)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642641#M47926</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642642#M47927</link>
      <description>&lt;P&gt;Sunny Talwar my hero as always !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much !&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642642#M47927</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-04T17:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642663#M47928</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's me again. I am actually trying to achieve the same table here in the excel spreadsheet attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think you can help ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642663#M47928</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-04T18:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642717#M47933</link>
      <description>&lt;P&gt;Does this has to be done on the front end? Can we do this in the script?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642717#M47933</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T20:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642891#M47947</link>
      <description>&lt;P&gt;Yes we can !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 09:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1642891#M47947</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-05T09:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643042#M47952</link>
      <description>&lt;P&gt;If you have time to help me with this would be really appreciated &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; !!!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643042#M47952</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-05T11:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643053#M47955</link>
      <description>&lt;P&gt;I will see what I can do. This is fairly complicated and it might take some time to build this out completely.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643053#M47955</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-05T11:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643055#M47957</link>
      <description>&lt;P&gt;OK no pressure :D. I knew it was almost impossible to achieve through the front end &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643055#M47957</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-05T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643067#M47959</link>
      <description>&lt;P&gt;One issue that I see is that the return is a user input... if we do it in the script it will have to hard-coded in the script... or anytime a user wants to change its value, the dashboard will have to be reloaded. Would that work for you?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643067#M47959</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-05T11:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643085#M47962</link>
      <description>&lt;P&gt;Yes it is fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 12:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643085#M47962</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-11-05T12:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum showing only at year end</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643187#M47971</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Table]:
LOAD Year,
     Date,
     If(Mod(Year(Date), 4) = 0, 366, 365) as NoOfDaysYear,
     If(Date = Floor(YearEnd(Date)), 1, 0) as YearEndFlag,
	 [Calls],
	 [Gross Investment Distributions],
     RangeSum([Calls], [Gross Investment Distributions]) as [Cash Flows]
 FROM [lib://Desktop/Test Carry.xlsx]
(ooxml, embedded labels, table is Sheet1);

FinalTable:
LOAD *,
	 If(YearEndFlag = 1, RangeSum(Peek('**bleep** Prev Cumulative Cash Flows'), [Prev Cumulative Cash Flows]), Peek('New **bleep** Prev Cumulative Cash Flows')) as [New **bleep** Prev Cumulative Cash Flows],
	 RangeSum(Peek('**bleep** Prev Cumulative Cash Flows'), [Prev Cumulative Cash Flows]) as [**bleep** Prev Cumulative Cash Flows],
	 RangeSum([Cumulative Cash Flows], If(YearEndFlag = 1, RangeSum(Peek('**bleep** Prev Cumulative Cash Flows'), [Prev Cumulative Cash Flows]), Peek('New **bleep** Prev Cumulative Cash Flows'))) as [New Cumulative Cash Flows];
LOAD *,
	 Date - Peek('Date') as Days,
	 RangeSum(Peek('Cumulative Cash Flows'), [Cash Flows]) as [Cumulative Cash Flows],
     (Peek('New Cumulative Cash Flows') * $(vPrefReturnRequired) * (Date - Peek('Date')))/NoOfDaysYear as [Prev Cumulative Cash Flows]
Resident Table
Order By Date;

DROP Table Table;&lt;/LI-CODE&gt;&lt;P&gt;Users can change the rate on the front end and trigger a reload to see changes to preferred returns&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 13:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-showing-only-at-year-end/m-p/1643187#M47971</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-05T13:59:10Z</dc:date>
    </item>
  </channel>
</rss>

