<?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: Accumulate Sum only until current month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538415#M508727</link>
    <description>&lt;P&gt;You can also use these expression if there are no 0 sales for any particular month in the past&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;PRE&gt;=If(Sum(Sales) &amp;gt; 0, Rangesum(Above(Sum(Sales),0,RowNo())))&lt;/PRE&gt;&lt;P&gt;Previous Year&lt;/P&gt;&lt;PRE&gt;If(Sum({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;}Sales) &amp;gt; 0, Rangesum(Above(Sum({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;}Sales),0,RowNo())))&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Feb 2019 12:51:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-02-01T12:51:26Z</dc:date>
    <item>
      <title>Accumulate Sum only until current month</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538239#M508724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the below screenshot, I have 2 expressions - the blue line is for the selected year ( in this case 2019 is selected) and the red line is for the previous year (selected year - 1). As you can see, in 2019 we have data only until current month, but the accumulation is done for until Dec. How can I show accumulation only until current month if the current year is selected? I have attached a sample QVW for reference.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap.PNG" style="width: 454px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5003i59113EC89FC98A47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap.PNG" alt="Snap.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538239#M508724</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2024-11-16T21:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate Sum only until current month</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538248#M508725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;In Expression for only(Year) give this expression:&amp;nbsp;&lt;STRONG&gt;Rangesum(Above(Sum(Sales),0,Max(Month)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rangesum function.PNG" style="width: 443px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5004iCCD58AC363FA672F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rangesum function.PNG" alt="Rangesum function.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 07:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538248#M508725</guid>
      <dc:creator>madhu_r</dc:creator>
      <dc:date>2019-02-01T07:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate Sum only until current month</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538257#M508726</link>
      <description>&lt;P&gt;Try this in the 2018 expression&lt;/P&gt;&lt;P&gt;Rangesum(Above(Sum({&amp;lt;Year={$(=Only(Year)-1)},Month = {$(=Concat(DISTINCT chr(39) &amp;amp; Month &amp;amp; Chr(39),','))}&amp;gt;}Sales),0,RowNo()))&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 07:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538257#M508726</guid>
      <dc:creator>adamgaox</dc:creator>
      <dc:date>2019-02-01T07:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate Sum only until current month</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538415#M508727</link>
      <description>&lt;P&gt;You can also use these expression if there are no 0 sales for any particular month in the past&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;PRE&gt;=If(Sum(Sales) &amp;gt; 0, Rangesum(Above(Sum(Sales),0,RowNo())))&lt;/PRE&gt;&lt;P&gt;Previous Year&lt;/P&gt;&lt;PRE&gt;If(Sum({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;}Sales) &amp;gt; 0, Rangesum(Above(Sum({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;}Sales),0,RowNo())))&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 12:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-Sum-only-until-current-month/m-p/1538415#M508727</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T12:51:26Z</dc:date>
    </item>
  </channel>
</rss>

