<?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 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653569#M48833</link>
    <description>&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;Many thanks for this, it solves the issue I am having in a table and combo chart.&lt;/P&gt;&lt;P&gt;I have tried it i a Heat Map in this way:&lt;/P&gt;&lt;P&gt;If(&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_In), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;-&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_Out), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;&amp;lt;0,0&lt;BR /&gt;,&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_In), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;-&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_Out), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The reason for the If is that if the returned value is negative I want it to show 0.&lt;/P&gt;&lt;P&gt;This is accumulating the result over the whole number of days.&lt;/P&gt;&lt;P&gt;I require it to show a daily accumulation and start again the next day.&lt;/P&gt;&lt;P&gt;The result needs to be a Heat Map with Time24 along the top and Date down the left.&lt;/P&gt;&lt;P&gt;Hope this makes sense&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 12:00:25 GMT</pubDate>
    <dc:creator>countwise</dc:creator>
    <dc:date>2019-12-03T12:00:25Z</dc:date>
    <item>
      <title>RangeSum</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653541#M48831</link>
      <description>&lt;P&gt;I am trying to calculate a cumulative figure for a field (Traffic_In)&lt;/P&gt;&lt;P&gt;I require the accumulation to be calculated for open hours only (Site_ActiveHours). by date(Date) and by hour(Time24).&lt;/P&gt;&lt;P&gt;I am using the following expression for Cumu In.&lt;/P&gt;&lt;P&gt;Aggr(RangeSum(Above(TOTAL Sum(Traffic_In), 0,RowNo())),Site_ActiveHours=True(),Date,Time24)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture 1.PNG" style="width: 814px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24806i4BE01C1AC0F58A83/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 1.PNG" alt="Capture 1.PNG" /&gt;&lt;/span&gt;This expression seems to work ok if the store opens at 9:00.&lt;/P&gt;&lt;P&gt;If the store opens at 8:00 the accumulation starts from 9:00 and adds the 8:00 figure at the end.(See image above.&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;Jim Diggins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Dec 2019 10:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653541#M48831</guid>
      <dc:creator>countwise</dc:creator>
      <dc:date>2019-12-03T10:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653548#M48832</link>
      <description>&lt;P&gt;Perhaps this way&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'Open'}&amp;gt;} Traffic_In), Date, Time24)), 0,RowNo(TOTAL)))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 11:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653548#M48832</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-03T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653569#M48833</link>
      <description>&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;Many thanks for this, it solves the issue I am having in a table and combo chart.&lt;/P&gt;&lt;P&gt;I have tried it i a Heat Map in this way:&lt;/P&gt;&lt;P&gt;If(&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_In), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;-&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_Out), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;&amp;lt;0,0&lt;BR /&gt;,&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_In), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;-&lt;BR /&gt;RangeSum(Above(TOTAL Sum(Aggr(Sum({&amp;lt;Site_ActiveHours={'-1'}&amp;gt;} Traffic_Out), Date, Time24)), 0,RowNo(TOTAL)))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The reason for the If is that if the returned value is negative I want it to show 0.&lt;/P&gt;&lt;P&gt;This is accumulating the result over the whole number of days.&lt;/P&gt;&lt;P&gt;I require it to show a daily accumulation and start again the next day.&lt;/P&gt;&lt;P&gt;The result needs to be a Heat Map with Time24 along the top and Date down the left.&lt;/P&gt;&lt;P&gt;Hope this makes sense&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 12:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum/m-p/1653569#M48833</guid>
      <dc:creator>countwise</dc:creator>
      <dc:date>2019-12-03T12:00:25Z</dc:date>
    </item>
  </channel>
</rss>

