<?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: script aggregation/accumilation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083699#M641127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a change of tact which seems to be the way to go with some tweaking &lt;/P&gt;&lt;P&gt;Ref:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/208191" title="https://community.qlik.com/thread/208191"&gt;https://community.qlik.com/thread/208191&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 10:33:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-04T10:33:46Z</dc:date>
    <item>
      <title>script aggregation/accumilation</title>
      <link>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083696#M641124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I have a calendar with all dates in the year.&amp;nbsp; In the calendar there is a flag field (1 or 0) to indicate if the day was an Invoice day.&amp;nbsp; I am trying to create a field with the count of invoice date in the month.&amp;nbsp; example Feb 2016 has no public holidays so 21 possible invoice day (Mon - Fri).&amp;nbsp; I want Monday the 1st to be 1, Tuesday the 2nd to be 2 and so on.&amp;nbsp; I think I need to combine the rangesum and peek functions to accumulate the flag and create my InvoiceDayOfMonthNumber but I cant figure out how I get it to start at 1 again on the change of a month.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Oli&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083696#M641124</guid>
      <dc:creator />
      <dc:date>2016-03-03T13:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: script aggregation/accumilation</title>
      <link>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083697#M641125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample dataset you can share? It would be easy to guide with a sample and expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083697#M641125</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: script aggregation/accumilation</title>
      <link>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083698#M641126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a month field in your calendar and the calendar is in chronological order you can use something like:&lt;/P&gt;&lt;P&gt;If(MyMonthField = Previous(MyMonthField),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(IsInvoiceDayFlag, peek(InvoiceDayOfMonthNumber)),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsInvoiceDay) as &lt;SPAN style="font-size: 13.3333px;"&gt;InvoiceDayOfMonthNumber&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083698#M641126</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-03T13:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: script aggregation/accumilation</title>
      <link>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083699#M641127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a change of tact which seems to be the way to go with some tweaking &lt;/P&gt;&lt;P&gt;Ref:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/208191" title="https://community.qlik.com/thread/208191"&gt;https://community.qlik.com/thread/208191&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 10:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-aggregation-accumilation/m-p/1083699#M641127</guid>
      <dc:creator />
      <dc:date>2016-03-04T10:33:46Z</dc:date>
    </item>
  </channel>
</rss>

