<?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: Accumulation through time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982468#M467241</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;The way i would approach this is first get the max value selected into a variable&lt;/P&gt;&lt;P&gt;vSelectdate=MAX(GetFieldSelections(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can Compare this in your set analysis&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Date={'&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;vSelectdate&lt;/SPAN&gt;)'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If need you can exculde other selections&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SUM({&amp;lt;Month=,Date={'&amp;lt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vSelectdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)'}&amp;gt;}Value)&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;Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 13:01:38 GMT</pubDate>
    <dc:creator>Mark_Little</dc:creator>
    <dc:date>2015-11-25T13:01:38Z</dc:date>
    <item>
      <title>Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982467#M467240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an idea how I can reach accumulation by the dimension Time/Periods in a formula that still works if I select specific time intervals from the master calendar fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I select Year '2014' Qlikview will not show me the values for 2014, but the values until 2014 (including the values of the preceeding years).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare the accumulated amount of particular investments with the revenue on this investment of a particular period.&lt;/P&gt;&lt;P&gt;So when I select the period from the master calendar fields, I want to see the accumulated amount of the investment &lt;STRONG&gt;until&lt;/STRONG&gt; that period and the revenue &lt;STRONG&gt;of&lt;/STRONG&gt; that period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982467#M467240</guid>
      <dc:creator>mcornips</dc:creator>
      <dc:date>2015-11-25T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982468#M467241</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;The way i would approach this is first get the max value selected into a variable&lt;/P&gt;&lt;P&gt;vSelectdate=MAX(GetFieldSelections(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can Compare this in your set analysis&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Date={'&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;vSelectdate&lt;/SPAN&gt;)'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If need you can exculde other selections&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SUM({&amp;lt;Month=,Date={'&amp;lt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vSelectdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)'}&amp;gt;}Value)&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;Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982468#M467241</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-25T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982469#M467242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107014_Capture.PNG" style="height: 445px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(Date) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Rand() * 100000) as Value;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MakeDate(2009, 12, 31) + RecNo()) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate (MakeDate(2015,12,31) - MakeDate(2009, 12, 31));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=Sum(Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;=If(Sum(Value) &amp;gt; 0, RangeSum(Above(Sum({&amp;lt;Month, Year, MonthYear, Date&amp;gt;}Value), 0, RowNo())))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982469#M467242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-25T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982470#M467243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your formula and then selecting a year from the master calendar fields still only shows me the values of that selected year and not the values until that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982470#M467243</guid>
      <dc:creator>mcornips</dc:creator>
      <dc:date>2015-11-25T13:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982471#M467244</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({1&amp;lt;Date={'&amp;lt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vSelectdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)'}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you want certain selections to effect you values add like below&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=SUM( {1&amp;lt;Field_1=&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$::Field_1, &lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date={'&amp;lt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vSelectdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)'}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982471#M467244</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-25T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982472#M467245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your formula in the QVW as attached, in the (red) bar chart in the second tab. I would like to compare the values of the period with the accumulated values until that period. So if I select a year, quarter or month in the master calendar fields the particular expression always will show me the accumulated value until that date. So if I select for example:&lt;/P&gt;&lt;P&gt;- 2010&lt;/P&gt;&lt;P&gt;- January&lt;/P&gt;&lt;P&gt;- Dimension 0&lt;/P&gt;&lt;P&gt;the expression shows me the value 27,276&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 10:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982472#M467245</guid>
      <dc:creator>mcornips</dc:creator>
      <dc:date>2015-12-10T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation through time</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982473#M467246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here my qvw I referred to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 13:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-through-time/m-p/982473#M467246</guid>
      <dc:creator>mcornips</dc:creator>
      <dc:date>2015-12-10T13:00:39Z</dc:date>
    </item>
  </channel>
</rss>

