<?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() and Peek() -&amp;gt; Not working in Data Load Editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939673#M77462</link>
    <description>&lt;P&gt;This worked! Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 14:26:28 GMT</pubDate>
    <dc:creator>calvintang</dc:creator>
    <dc:date>2022-06-04T14:26:28Z</dc:date>
    <item>
      <title>RangeSum() and Peek() -&gt; Not working in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939454#M77444</link>
      <description>&lt;P&gt;This is my script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daily_Population:&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;BR /&gt;monthname([date_signed]) AS [Month Year],&lt;BR /&gt;Count(DISTINCT [PlayerI_D]) as CountofPlayers,&lt;BR /&gt;RangeSum(Count(DISTINCT [Player_ID]),peek(CumulativeCountofPlayers)) as CumulativeCountofPlayers&lt;BR /&gt;&lt;BR /&gt;RESIDENT [alpha_fact_client_info]&lt;BR /&gt;GROUP BY monthname([date_signed]);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My end goal is something like this:&lt;/P&gt;
&lt;P&gt;Month | Population | Total Population (Running)&lt;/P&gt;
&lt;P&gt;Jan 2022 | 10 | 10&lt;/P&gt;
&lt;P&gt;Feb 2022 | 5 | 15&lt;/P&gt;
&lt;P&gt;Mar 2022 | 30 | 45&lt;/P&gt;
&lt;P&gt;Apr 2022 | 50 | 95&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It keeps throwing me an invalid expression error!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 13:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939454#M77444</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-06-03T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Peek() -&gt; Not working in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939499#M77448</link>
      <description>&lt;P&gt;Just do it in two steps - at the first load aggregating the values and within a second sorted resident-load you cumulate the results with rangesum() + peek().&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 14:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939499#M77448</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-03T14:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Peek() -&gt; Not working in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939672#M77461</link>
      <description>&lt;P&gt;maybe this works for you?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Daily_Population:
LOAD *,
     RangeSum(CountofPlayers,Peek(CumulativeCountofPlayers)) as CumulativeCountofPlayers;
LOAD MonthName(date_signed) as [Month Year],
     Count(DISTINCT PlayerI_D) as CountofPlayers
RESIDENT [alpha_fact_client_info]
GROUP BY monthname([date_signed])
Order By date_signed;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 14:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939672#M77461</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-06-04T14:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Peek() -&gt; Not working in Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939673#M77462</link>
      <description>&lt;P&gt;This worked! Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 14:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-and-Peek-gt-Not-working-in-Data-Load-Editor/m-p/1939673#M77462</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-06-04T14:26:28Z</dc:date>
    </item>
  </channel>
</rss>

