<?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 Accumulation in time series in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Accumulation-in-time-series/m-p/1143902#M20385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seeking for help/advice for accumulation in time series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The topic was discussed here (excellent advice how to do this in Qliksense) &lt;A href="https://community.qlik.com/thread/134526"&gt;Accumulation in Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have slightly different use case and have made a solution, though I want to ask if there is a better way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table of orders and their statutes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 416px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="92"&gt;OrderID&lt;/TD&gt;&lt;TD width="106"&gt;OrderDate&lt;/TD&gt;&lt;TD width="111"&gt;ShipmentDate&lt;/TD&gt;&lt;TD width="107"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very small sample table (Excel)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/iff84s70obr7tkx/orders%20and%20shipments.xlsx?dl=0" title="https://www.dropbox.com/s/iff84s70obr7tkx/orders%20and%20shipments.xlsx?dl=0"&gt;https://www.dropbox.com/s/iff84s70obr7tkx/orders%20and%20shipments.xlsx?dl=0 &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status can be Completed or Cancelled (i.e. closed order) as well WIP (i.e. being processed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to understand how many orders in this month were closed (completed or cancelled) + all WIP (being processed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Formula is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Order monthly log = Closed + WIP (accumulated in this month and all from previous months)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For closed items I think correct set expression is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {$&amp;lt;Status-={'WIP'}&amp;gt;} [OrderID] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For WIP items it's trickier (because of accumulation). I think this is correct one: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(above( count( {$&amp;lt;Status={'WIP'}&amp;gt;} [OrderID]),0,rowno())) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works (i checked with Excel manual calculations). &lt;/P&gt;&lt;P&gt;Though it seems very complicated way, maybe I got lost somewhere and there is more straight way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 16:59:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-07T16:59:48Z</dc:date>
    <item>
      <title>Accumulation in time series</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulation-in-time-series/m-p/1143902#M20385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seeking for help/advice for accumulation in time series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The topic was discussed here (excellent advice how to do this in Qliksense) &lt;A href="https://community.qlik.com/thread/134526"&gt;Accumulation in Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have slightly different use case and have made a solution, though I want to ask if there is a better way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table of orders and their statutes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 416px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="92"&gt;OrderID&lt;/TD&gt;&lt;TD width="106"&gt;OrderDate&lt;/TD&gt;&lt;TD width="111"&gt;ShipmentDate&lt;/TD&gt;&lt;TD width="107"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very small sample table (Excel)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/iff84s70obr7tkx/orders%20and%20shipments.xlsx?dl=0" title="https://www.dropbox.com/s/iff84s70obr7tkx/orders%20and%20shipments.xlsx?dl=0"&gt;https://www.dropbox.com/s/iff84s70obr7tkx/orders%20and%20shipments.xlsx?dl=0 &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status can be Completed or Cancelled (i.e. closed order) as well WIP (i.e. being processed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to understand how many orders in this month were closed (completed or cancelled) + all WIP (being processed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Formula is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Order monthly log = Closed + WIP (accumulated in this month and all from previous months)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For closed items I think correct set expression is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {$&amp;lt;Status-={'WIP'}&amp;gt;} [OrderID] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For WIP items it's trickier (because of accumulation). I think this is correct one: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(above( count( {$&amp;lt;Status={'WIP'}&amp;gt;} [OrderID]),0,rowno())) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works (i checked with Excel manual calculations). &lt;/P&gt;&lt;P&gt;Though it seems very complicated way, maybe I got lost somewhere and there is more straight way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 16:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulation-in-time-series/m-p/1143902#M20385</guid>
      <dc:creator />
      <dc:date>2016-06-07T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in time series</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulation-in-time-series/m-p/1143903#M20386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I see that solution is not right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, some orders maybe opened in May and closed in December. They will have OrderDate in May and completed in December.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all months in between this order will be in WIP (June, July ... December).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the current application in QS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need to tweak with data model - it looks some additional columns may help. !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 17:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulation-in-time-series/m-p/1143903#M20386</guid>
      <dc:creator />
      <dc:date>2016-06-07T17:55:33Z</dc:date>
    </item>
  </channel>
</rss>

