<?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: Range Sum - cummulative sums with limit date using set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043635#M351039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my file has only 7.7 mb right now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dictionary for you Guys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miesiąc - Month&lt;/P&gt;&lt;P&gt;Rok - Year&lt;/P&gt;&lt;P&gt;ID_Miesiąc = ID_Month&lt;/P&gt;&lt;P&gt;KwotaW - Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 10:51:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-22T10:51:57Z</dc:date>
    <item>
      <title>Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043627#M351031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do cummulative sums for 12 months in bar chart within specific year regardless current selected month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MO_ID is kind of sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month = Miesiac&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sty - Jan&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;lut - Feb...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...gru - Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Month=&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Month= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Month=, MO_ID={1}&amp;gt;}Amount),0,12) ),ID_Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This is working like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Problem with cummulative.jpg" class="jive-image image-1" src="/legacyfs/online/118934_Problem with cummulative.jpg" style="height: 239px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;When i have 2016 i am limited with max ID_Month - 2 (it is the last closed month) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({$&amp;lt;Month=, &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;ID_Month={'&amp;lt;=2'}&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Month= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Month=, MO_ID={1}&amp;gt;}Amount),0,12) ),ID_Month)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Result with this expression is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Year Month.jpg" class="jive-image image-2" src="/legacyfs/online/118935_Year Month.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this result above i would to get in my chart but only in 2016. As you can see above - &lt;/P&gt;&lt;P&gt;I have year 2016 in lut - February so when i set the expression if(Year='2016',...) this will be working only in one row,&lt;/P&gt;&lt;P&gt;i want them all in 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please save me and help me,&lt;/P&gt;&lt;P&gt;thank you in advance !&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043627#M351031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T09:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043628#M351032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that's because a grain mismatch between your aggr() dimensions and the outer chart dimensions (read Henric's blog post about aggr() pitfalls if you need to understand the grain mismatch), try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({$&amp;lt;Month=, &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;ID_Month={'&amp;lt;=2'}&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Month= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Month=, MO_ID={1}&amp;gt;}Amount),0,12) ),&lt;STRONG&gt;Year,&lt;/STRONG&gt; ID_Month)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043628#M351032</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T09:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043629#M351033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this document helps: &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;P&gt;&lt;/P&gt;&lt;P&gt;I think your expression is missing at least something that makes it ignore the selection of the year and something to aggregate per month per year instead of just over months. Can you post a small qlikview document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043629#M351033</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-22T09:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043630#M351034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You swuehl. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried your solution but it didn't work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im wondering if i had flagYear in model it would solve my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043630#M351034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043631#M351035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I just don't understand your data model. Why do you have year 2016 only in lut?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to share a small sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043631#M351035</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T10:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043632#M351036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MY file has 84 mb, how can i do from it small sample ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043632#M351036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043633#M351037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please don't upload a file this large, just create a small sample QVW with some (best INLINE) tables that show how relevant fields and tables are related and how your data looks like (could be mock up data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only need to create the relevant fields to demonstrate your setting and issue (I know it's not easy to tell what's relevant, as soon as you've mastered this, you probably also mastered to resolve the issue on your own &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043633#M351037</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T10:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043634#M351038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select some values in your document and then choose the Reduce option from the File menu and choose Keep Possible Values. Then save the document so it contains only the reduced data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043634#M351038</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-22T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043635#M351039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my file has only 7.7 mb right now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dictionary for you Guys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miesiąc - Month&lt;/P&gt;&lt;P&gt;Rok - Year&lt;/P&gt;&lt;P&gt;ID_Miesiąc = ID_Month&lt;/P&gt;&lt;P&gt;KwotaW - Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043635#M351039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043636#M351040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't open the QVW, seems like there is section access enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043636#M351040</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T10:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043637#M351041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok now should be ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043637#M351041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T11:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043638#M351042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This order of aggr() dimension values is important for the rangesum(Above()), so maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Miesiąc=, ID_Miesiąc={'&amp;lt;=2'}&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Miesiąc= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Miesiąc=, MO_ID={1}&amp;gt;}KwotaW),0,12) &lt;STRONG&gt;),Rok,ID_Miesiąc&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Well, maybe I got lost in your sample. What exactely is your requested result for the selection of 2016 and lut?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043638#M351042</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T11:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043639#M351043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, unfortunately your solution is too simple to get worked &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have if(Rok='2016', show aggregation only for Sty and Lut -&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({$&amp;lt;Miesiąc=, &lt;STRONG&gt;ID_Miesiąc={'&amp;lt;=2'}&lt;/STRONG&gt;&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Miesiąc= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Miesiąc=, MO_ID={1}&amp;gt;}KwotaW),0,12) &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),Rok,ID_Miesiąc&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, and if you have Rok = '2015' show all month with cummulative sums:&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({$&amp;lt;Miesiąc=&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Miesiąc= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Miesiąc=, MO_ID={1}&amp;gt;}KwotaW),0,12) &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),Rok,ID_Miesiąc&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sums.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118942_sums.png" style="height: 258px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when i have Rok = '2015' it is connected with month which i selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my "if" will be working only there where i have Rok. In 2016 i want to have Rok not only where i selected. I want to have this as well in Jan and in Feb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043639#M351043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043640#M351044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should show the year in &lt;EM&gt;all&lt;/EM&gt; dimension lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;Miesiąc=&amp;gt;}Rok)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe you just need to filter in your set expression instead of using an if() statement, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Miesiąc=, ID_Miesiąc={'&amp;lt;=2'&lt;STRONG&gt;}, Rok *= {2016}&lt;/STRONG&gt;&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Miesiąc= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Miesiąc=, MO_ID={1}&amp;gt;}KwotaW),0,12) ),Rok,ID_Miesiąc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use conditional expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043640#M351044</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T11:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Range Sum - cummulative sums with limit date using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043641#M351045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is working - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Only({&amp;lt;Miesiąc=&amp;gt;}Rok): &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="working.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118967_working.jpg" style="height: 302px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;but when i set this in expression in my model there was still problem with this.&lt;/P&gt;&lt;P&gt;I upgraded my expression and now it is working and looking like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Only({&amp;lt;Miesiąc=, ID_Miesiąc=&amp;gt;}Rok)=2016,&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Miesiąc=, Kwartał=, ID_Miesiąc= {"&amp;lt;=2"}, Rok = {2016}&amp;gt;}aggr(rangesum( ABOVE( sum({$&amp;lt;ID_Miesiąc= {"&amp;lt;=$(=Max({1} ID_Miesiąc))"}, Kwartał=,Miesiąc=, MO_ID={1}&amp;gt;}KwotaW),0,12) ),ID_Miesiąc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the key was to aggregate Rok except of current selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You swuehl for your help !&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Sum-cummulative-sums-with-limit-date-using-set-analysis/m-p/1043641#M351045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T12:53:35Z</dc:date>
    </item>
  </channel>
</rss>

