<?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 Cumulative Value based on date range? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621026#M228606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display a table of cumulative values based on dates, and so far, I can only do this if a select the "Cumulative" Button in the Expression tab in my chart.&amp;nbsp; This works well if you display all dates/rows, but I need the cumulative value even if I select just one date/row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample file that has the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testtable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Date, Widgets,&lt;/P&gt;&lt;P&gt;1/1/2013, 35&lt;/P&gt;&lt;P&gt;2/1/2013, 25&lt;/P&gt;&lt;P&gt;3/1/2013, 50&lt;/P&gt;&lt;P&gt;4/1/2013, 10&lt;/P&gt;&lt;P&gt;5/1/2013, 60&lt;/P&gt;&lt;P&gt;6/1/2013, 20&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can display this as a table that show this data of Widgets per Month, or I can show it as a cumulative widget sum also using that button in the Expression.&amp;nbsp; But what I need is to be able to isolate a Date, like 4/1/2013, and show the *cumulative* sum of Widgets from the beginning of time through that date.&amp;nbsp; So if I selected just 4/1/2013, it should show (35+25+50+10) = 120.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Feb 2014 17:57:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-23T17:57:45Z</dc:date>
    <item>
      <title>Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621026#M228606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display a table of cumulative values based on dates, and so far, I can only do this if a select the "Cumulative" Button in the Expression tab in my chart.&amp;nbsp; This works well if you display all dates/rows, but I need the cumulative value even if I select just one date/row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample file that has the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testtable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Date, Widgets,&lt;/P&gt;&lt;P&gt;1/1/2013, 35&lt;/P&gt;&lt;P&gt;2/1/2013, 25&lt;/P&gt;&lt;P&gt;3/1/2013, 50&lt;/P&gt;&lt;P&gt;4/1/2013, 10&lt;/P&gt;&lt;P&gt;5/1/2013, 60&lt;/P&gt;&lt;P&gt;6/1/2013, 20&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can display this as a table that show this data of Widgets per Month, or I can show it as a cumulative widget sum also using that button in the Expression.&amp;nbsp; But what I need is to be able to isolate a Date, like 4/1/2013, and show the *cumulative* sum of Widgets from the beginning of time through that date.&amp;nbsp; So if I selected just 4/1/2013, it should show (35+25+50+10) = 120.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 17:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621026#M228606</guid>
      <dc:creator />
      <dc:date>2014-02-23T17:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621027#M228607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See a document I have published to create simple YTD:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/docs/DOC-4821"&gt;http://community.qlik.com/docs/DOC-4821&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also use set analysis to do the computation, but this one will be valid only for ONE period (the set is unique for all the chart): &lt;A href="http://community.qlik.com/docs/DOC-4951"&gt;http://community.qlik.com/docs/DOC-4951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 18:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621027#M228607</guid>
      <dc:creator />
      <dc:date>2014-02-23T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621028#M228608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this Expression in your Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(total sum(Widgets),0,RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see the Attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 18:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621028#M228608</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-02-23T18:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621029#M228609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 style="margin-right: 100px; padding-left: 32px; font-size: 26px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left;"&gt;&lt;/H1&gt;&lt;P&gt;an good doc about..........&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 20:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621029#M228609</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-23T20:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621030#M228610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent doc (not just good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To me, an AsofTable is needed in ths case and both documents explain how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 20:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621030#M228610</guid>
      <dc:creator />
      <dc:date>2014-02-23T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621031#M228611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry this only works if you retain all rows in the chart..&amp;nbsp; I need an expression that will work if I select *only one date/row* and still retain the cumulative 'YTD' amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 02:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621031#M228611</guid>
      <dc:creator />
      <dc:date>2014-02-24T02:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621032#M228612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the AsofTable method work only for a fixed rolling period?&amp;nbsp; I need the expression to be able to adjust to *any* period of months, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 03:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621032#M228612</guid>
      <dc:creator />
      <dc:date>2014-02-24T03:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621033#M228613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) YES . You need to adapt your model to your needs. And populate this table to the computations you will do&lt;/P&gt;&lt;P&gt;2) If you want to get only one period in your chart (and do a computation), you can use also set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 08:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621033#M228613</guid>
      <dc:creator />
      <dc:date>2014-02-24T08:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621034#M228614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, but can you provide an example of an expression that would actually work if it were in fact the only row I selected?&amp;nbsp; In other words, show the cumulative amount even if I only select one date/month, etc.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 02:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621034#M228614</guid>
      <dc:creator />
      <dc:date>2014-02-25T02:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621035#M228615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({&amp;lt;Date={"&amp;lt;=$(=date(max(Date),))"}&amp;gt;}Widgets)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Aunez suggested try set analysis. Above is your expression and remove Date as your Dimension to get your accumulation in one figure.&amp;nbsp; You could put this into a variable to make it simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 04:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621035#M228615</guid>
      <dc:creator />
      <dc:date>2014-02-25T04:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621036#M228616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, we are getting closer.&amp;nbsp; Your expression works but I cannot remove the date dimension for my needs.&amp;nbsp; I need to be able to keep the date dimension but still have it display the cumulative amount for that date, even if the previous dates are not selected in the table.&amp;nbsp;&amp;nbsp;&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621036#M228616</guid>
      <dc:creator />
      <dc:date>2014-02-25T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621037#M228617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use Set Analysis as Julian showed you.&lt;/P&gt;&lt;P&gt;i had written another doc on that topic: &lt;A href="http://community.qlik.com/docs/DOC-4951"&gt;http://community.qlik.com/docs/DOC-4951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Set Analysis are computed ONCE per chart. You cannot use them if you expect a different "result" by row or column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621037#M228617</guid>
      <dc:creator />
      <dc:date>2014-02-25T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621038#M228618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm asking if there is any way to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;keep the a date dimension in place, but still have it display the cumulative amount for that date, even if the previous dates are not selected in the table.&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you saying that is not possible?&amp;nbsp; If so, I'll abandon this attempt : )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621038#M228618</guid>
      <dc:creator />
      <dc:date>2014-02-25T14:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621039#M228619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;That is possible by&lt;/P&gt;&lt;P&gt;1) creating an expression with a set analysis (Julian has given the way to write it)&lt;/P&gt;&lt;P&gt;2) having ONE date selected only (if you select several dates, the Max() function will return the last date anyway)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621039#M228619</guid>
      <dc:creator />
      <dc:date>2014-02-25T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621040#M228620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood, thanks.&amp;nbsp; Unfortunately, our requirements dictate that I need to following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) A Date/Month (dimension) column that shows a rolling 12 or 24 months at a time&lt;/P&gt;&lt;P&gt;2) Expression showing the cumulative amount even if the start date/months are not being shown in the graph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 15:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621040#M228620</guid>
      <dc:creator />
      <dc:date>2014-02-25T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621041#M228621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then modify your model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 15:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621041#M228621</guid>
      <dc:creator />
      <dc:date>2014-02-25T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value based on date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621042#M228622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, but I'm not sure what to do next and I need more help... perhaps an example of an expression that will fit my needs or a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 15:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-based-on-date-range/m-p/621042#M228622</guid>
      <dc:creator />
      <dc:date>2014-02-25T15:36:19Z</dc:date>
    </item>
  </channel>
</rss>

