<?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: summing over the period in a script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/summing-over-the-period-in-a-script/m-p/625359#M681476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your best bet may be to upload another dimension which deals which allows a single source value to appear in many periods.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The table would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accumulate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Saldi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cumulative&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Saldi,Cumulative&lt;/P&gt;&lt;P&gt;01,01&lt;/P&gt;&lt;P&gt;02,01&lt;/P&gt;&lt;P&gt;02,02&lt;/P&gt;&lt;P&gt;03,01&lt;/P&gt;&lt;P&gt;03,02&lt;/P&gt;&lt;P&gt;03,03&lt;/P&gt;&lt;P&gt;04,01&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way any value that exists in Saldi 03 is associated with cumulative periods 01, 02 and 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may run into some issues with QlikView treating some of the values as strings and others as text - causing the associations not to work but you can probably work around this.&amp;nbsp; You also have the issue that you could potentially have many years - do you know how you will want to accumulate this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The accumulation table could be built in a nested loop, or driven from a spreadsheet with the join values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that gives you some pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 14:41:59 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2014-03-26T14:41:59Z</dc:date>
    <item>
      <title>summing over the period in a script</title>
      <link>https://community.qlik.com/t5/QlikView/summing-over-the-period-in-a-script/m-p/625358#M681475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've uploaded a table with several dimensions as shown below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/55921_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I need to sum up "saldi" starting from the first period in a cumulative way, that's&lt;/P&gt;&lt;P&gt;1st period sum = saldi 1st period&lt;/P&gt;&lt;P&gt;2nd period sum = saldi 1st period + saldi 2nd period&lt;/P&gt;&lt;P&gt;3rd period sum = saldi 1st period + saldi 2nd period + saldi 3rd period...&lt;/P&gt;&lt;P&gt;... and so on&lt;/P&gt;&lt;P&gt;I'm in trouble because I'm not able to do it.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summing-over-the-period-in-a-script/m-p/625358#M681475</guid>
      <dc:creator />
      <dc:date>2014-03-26T14:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: summing over the period in a script</title>
      <link>https://community.qlik.com/t5/QlikView/summing-over-the-period-in-a-script/m-p/625359#M681476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your best bet may be to upload another dimension which deals which allows a single source value to appear in many periods.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The table would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accumulate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Saldi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cumulative&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Saldi,Cumulative&lt;/P&gt;&lt;P&gt;01,01&lt;/P&gt;&lt;P&gt;02,01&lt;/P&gt;&lt;P&gt;02,02&lt;/P&gt;&lt;P&gt;03,01&lt;/P&gt;&lt;P&gt;03,02&lt;/P&gt;&lt;P&gt;03,03&lt;/P&gt;&lt;P&gt;04,01&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way any value that exists in Saldi 03 is associated with cumulative periods 01, 02 and 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may run into some issues with QlikView treating some of the values as strings and others as text - causing the associations not to work but you can probably work around this.&amp;nbsp; You also have the issue that you could potentially have many years - do you know how you will want to accumulate this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The accumulation table could be built in a nested loop, or driven from a spreadsheet with the join values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that gives you some pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summing-over-the-period-in-a-script/m-p/625359#M681476</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-03-26T14:41:59Z</dc:date>
    </item>
  </channel>
</rss>

