<?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 Selective Accumulation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286628#M1200254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yes I've thought about this but the problem is it would be ~10 million rows to accumulate for my project and it would take a lot of time it seems like &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any other ideas? I thought about if you select a date range in a table it would add the previous accumulation using&lt;/P&gt;&lt;P&gt;Sum ( {$&amp;lt;Date = {"&amp;lt;$(FromDate)"}&amp;gt;) Value)&lt;/P&gt;&lt;P&gt;But this just gives me totally wrong values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Nov 2010 13:01:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-08T13:01:30Z</dc:date>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286626#M1200252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this has been brought up here before but I can't find any good answers.&lt;/P&gt;&lt;P&gt;To put it simply: I have a table with 2 fields, one value field and one date field. I have these fields in a straight table with full accumulation.&lt;/P&gt;&lt;P&gt;What I want to do is to be able to select a date range in the middle of the table and still have the accumulation intact (not beginning on 0 again). I've been trying with Sets etc but can't get it to work. My idea was to have a set that sums up all the previous values and then add this number to the new accumulation, but it doesnt work.&lt;/P&gt;&lt;P&gt;Any ideas? I would rather not have a seperate date field to control it either&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 15:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286626#M1200252</guid>
      <dc:creator />
      <dc:date>2010-11-06T15:06:59Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286627#M1200253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to Accumulate the data at the script level. I am attaching a sample application. Hope this helps u out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 04:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286627#M1200253</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-11-07T04:55:05Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286628#M1200254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yes I've thought about this but the problem is it would be ~10 million rows to accumulate for my project and it would take a lot of time it seems like &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any other ideas? I thought about if you select a date range in a table it would add the previous accumulation using&lt;/P&gt;&lt;P&gt;Sum ( {$&amp;lt;Date = {"&amp;lt;$(FromDate)"}&amp;gt;) Value)&lt;/P&gt;&lt;P&gt;But this just gives me totally wrong values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 13:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286628#M1200254</guid>
      <dc:creator />
      <dc:date>2010-11-08T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286629#M1200255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can't use sets for this purpose as the set selection is applied to the whole dataset, and not at the individual dimensions.&lt;/P&gt;&lt;P&gt;You must use something like expression YTD = Rangesum(Sales, above(YTD)), but this will also start with zero unless you add an offset of the YTD to the minimum date in your chart.&lt;/P&gt;&lt;P&gt;The best approach is as the previous poster said to do it in script. Although it will take a little while to run, it is the only the reload time that is affected, so it does not affect the users opening files. If you have 10m records, you should be loading with an incremental load anyway, so if you do daily load, you are just calculating out the values for one day and reading the rest from a QVD file.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 14:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286629#M1200255</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-11-08T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286630#M1200256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok cool,&lt;/P&gt;&lt;P&gt;So if I have the following fields for each record: Article, WarehouseNr, Amount, Date and I want an accumulated value for each article for each warehouse. How would I accomplish this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 16:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286630#M1200256</guid>
      <dc:creator />
      <dc:date>2010-11-08T16:18:36Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286631#M1200257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your objection to a separate date field due to performance? I agree that the common solution of using a date island and matching things up with an if() would have serious performance problems when you have over 10 million rows. But not ALL date-based solutions will have problems. My normal suggestion for cases like this is an AsOf table:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AsOfDate, Date&lt;BR /&gt;2010 Jan 1, 2010 Jan 1&lt;BR /&gt;2010 Jan 2, 2010 Jan 1&lt;BR /&gt;2010 Jan 2, 2020 Jan 2&lt;BR /&gt;2010 Jan 3, 2010 Jan 1&lt;BR /&gt;2010 Jan 3, 2010 Jan 2&lt;BR /&gt;2010 Jan 3, 2010 Jan 3&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;Then when you use AsOfDate instead of Date, your data will be automatically accumulated by QlikView's normal relational logic. That should prevent any serious performance problems (I hope). It will work properly if you select a date range in the middle of the table, because every one of those AsOfDates is connected to all the right dates in data, and you haven't excluded those dates.&lt;/P&gt;&lt;P&gt;If I understood the chart you want, it would then look like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dimension 1 = Article&lt;BR /&gt;dimension 2 = WarehouseNr&lt;BR /&gt;dimension 3 = AsOfDate&lt;BR /&gt;expression = sum(Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 22:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286631#M1200257</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-08T22:17:17Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286632#M1200258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great solution! But how would I formulate that in the script? I'm quite new to QV &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have a field called Date which I load from a QVD-file, how do I create your AsOf-table from that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286632#M1200258</guid>
      <dc:creator />
      <dc:date>2010-11-09T15:34:36Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286633#M1200259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;// First, add all dates to the new table.&lt;BR /&gt;AsOf:&lt;BR /&gt;LOAD Date&lt;BR /&gt;RESIDENT YourCalendarTable // assuming you have one&lt;BR /&gt;;&lt;BR /&gt;// Then join every date to every other date.&lt;BR /&gt;LEFT JOIN (AsOf)&lt;BR /&gt;LOAD Date as AsOfDate&lt;BR /&gt;RESIDENT AsOf&lt;BR /&gt;;&lt;BR /&gt;// Then only keep the date combinations that support the accumulation.&lt;BR /&gt;INNER JOIN (AsOf)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT AsOf&lt;BR /&gt;WHERE AsOfDate &amp;gt;= Date&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286633#M1200259</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-09T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Selective Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286634#M1200260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This solved it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 12:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selective-Accumulation/m-p/286634#M1200260</guid>
      <dc:creator />
      <dc:date>2010-11-11T12:50:13Z</dc:date>
    </item>
  </channel>
</rss>

