<?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: Rolling 60 for each month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280935#M104496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be similar to what you're asking for.&amp;nbsp; The three charts show three different options.&amp;nbsp; In this case, they show a rolling three months, but it's hopefully fairly clear (with some study, I'm sure) what to do to convert any of them to rolling 60 days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 02:05:31 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-12-13T02:05:31Z</dc:date>
    <item>
      <title>Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280933#M104494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿Hi Eveyone, &lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm looking to get a rolling 60 day sum for each month. Not just the last 60 days. See example. How would I implement this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿I currently have a line graph with the last 60 days in the expression. I want to the last 60 days for each month. Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 22:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280933#M104494</guid>
      <dc:creator />
      <dc:date>2011-12-05T22:26:29Z</dc:date>
    </item>
    <item>
      <title>Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280934#M104495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 22:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280934#M104495</guid>
      <dc:creator />
      <dc:date>2011-12-12T22:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280935#M104496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be similar to what you're asking for.&amp;nbsp; The three charts show three different options.&amp;nbsp; In this case, they show a rolling three months, but it's hopefully fairly clear (with some study, I'm sure) what to do to convert any of them to rolling 60 days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 02:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280935#M104496</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-13T02:05:31Z</dc:date>
    </item>
    <item>
      <title>Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280936#M104497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome John. I used the last of the three charts in my application and it worked great. It should be ease to replicate for 60 days. 90 days was actually a requirement also. I really appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 16:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280936#M104497</guid>
      <dc:creator />
      <dc:date>2011-12-13T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280937#M104498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey John, I more thing. I'm trying to add another dimension to the graph, but it only shows the 1 typ of my dimension at a time. But if I select the dimension in a list box it renders correctly, but not all of them are shown on the graph. Any ideas what I need to change? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 18:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280937#M104498</guid>
      <dc:creator />
      <dc:date>2011-12-15T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280938#M104499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only have two dimensions, I believe - your X axis dimension, and the dimension that controls how many lines are being displayed.&amp;nbsp; If you MUST have a line for each combination of year and some other dimension, you could concatenate the two together as a calculated dimension.&amp;nbsp; I think for most data sets that would simply produce a mess, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you should be using a year+month as the X axis, and use your other dimension for the lines in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not entirely sure I've understood what you're trying to show, though, or what your data looks like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280938#M104499</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-15T20:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280939#M104500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I only have two dimensions. AsOfMonth, and Region. I don't understand why its not showing a line for Region. I attempted to use YearMonth as the X Dimension, but it still did not work. It just doesn't make sense to me, because I can select each Region and they render as single line on the graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280939#M104500</guid>
      <dc:creator />
      <dc:date>2011-12-15T20:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280940#M104501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works fine for me and nothing is jumping out at me as a possible explanation.&amp;nbsp; Maybe if you have an expression with an aggr() somewhere, you could have forgotten to add Region to it, but that's grasping at straws.&amp;nbsp; I don't know your data model or chart expressions, so I can't actually debug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280940#M104501</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-15T20:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280941#M104502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Not grasping at straws at all. That was the key. So if I have an with an aggregation, I have to add the dimension in the expression? I'm not very well-versed with the aggregation functions. Thanks again John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 21:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280941#M104502</guid>
      <dc:creator />
      <dc:date>2011-12-15T21:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280942#M104503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say we start with a chart that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension&amp;nbsp; = Month Year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expression = avg(aggr(sum(Sales),Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each month, we want to know the average of customer sales.&amp;nbsp; Now you decide you want to know the average of customer sales by Region.&amp;nbsp; If you just add the Region dimension with no further changes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension 1 = Month Year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension 2 = Region&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expression&amp;nbsp; = avg(aggr(sum(Sales),Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...it probably won't work right, because the aggr() is, I &lt;EM&gt;believe&lt;/EM&gt;, explicitly telling QlikView to ignore the Region field.&amp;nbsp; So I'd expect all of the lines to overlap, and only the top line would show.&amp;nbsp; I think you would need this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension 1 = Month Year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension 2 = Region&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expression&amp;nbsp; = avg(aggr(sum(Sales),Region,Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not entirely certain, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 22:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280942#M104503</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-15T22:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280943#M104504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm dealing with some slowness when the chart is rendering. I have 34 Million records that I'm using at the moment. Do you have any other advise for me to try and increase the speed of the calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;AsOfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={2011},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;RollingTwoMonthsFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;TransactionType&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;Cnt&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;AsOfMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;))-&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;AsOfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={2010},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;RollingTwoMonthsFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;TransactionType&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;Cnt&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;AsOfMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;)) )/&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;AsOfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={2010},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;RollingTwoMonthsFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;TransactionType&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;Cnt&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;AsOfMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 19:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280943#M104504</guid>
      <dc:creator />
      <dc:date>2011-12-21T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280944#M104505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, recognize that (A-B)/B = A/B - 1.&amp;nbsp; That might save some time, assuming QlikView doesn't realize they're the same calculation and grab the result out of some cache.&amp;nbsp; It'll simplify the expression in any case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect you can eliminate the sum(aggr(sum())) structure and just use sum().&amp;nbsp; It seems like they would logically produce the same result.&amp;nbsp; You're throwing values into buckets, totalling up each bucket, and then totalling the totals.&amp;nbsp; That should be the same as just totalling the values.&amp;nbsp; In the case of avg(aggr(sum())), you'd get different results, which is probably why I mentioned that as an example of aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are your flags 1/0 or 1/null?&amp;nbsp; You might find 1/null to be a little faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some versions of QlikView, count() is faster than sum(), and in others the opposite is true.&amp;nbsp; It might be worth trying as a count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be a way to arrange the data better to match your specific case.&amp;nbsp; For instance, if TransactionType isn't a flag, but has values 1-6, and is on the same table as Cnt, you might define a "Transaction Type 1 Cnt" field that has a value of 1 or null.&amp;nbsp; It might be faster to sum or count that field than to include TransactionType in the set analysis in that case.&amp;nbsp; I don't know (and don't have time to learn) your full data model, though, so I can't really say how you might change it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 20:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280944#M104505</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-21T20:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280945#M104506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the calc to A/B-1 and that didn't seem to do a whole lot, but when I removed the aggr() function. It significantly increased the speed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 20:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280945#M104506</guid>
      <dc:creator />
      <dc:date>2011-12-21T20:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 60 for each month</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280946#M104507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So my requirements how changed a little bit. I now need to compare it by date, not just month. They customer would like to go back 28, 56, and 74 for their 30,60,90 day views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I'm at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(MonthYear&amp;lt;=AsOfMonthYear and AsOfDate&amp;gt;(As)fDate-74),1) as Rolling ThreeMonthsFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thats not getting me my expected results. Any pointers for me would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 22:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-60-for-each-month/m-p/280946#M104507</guid>
      <dc:creator />
      <dc:date>2012-01-10T22:23:56Z</dc:date>
    </item>
  </channel>
</rss>

