<?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: Problem with rolling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631906#M542678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create it in Load Script. Rolling Sum and Rolling Averages are best done in the Load Script from my adventures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take metric and create a copy of it, as MetricRolling and then move the Date field by 1 month or 1 week depending on the granularity needed by the metric for the number of rolling weeks/months etc. and then SUM() Group by this new MetricRolling field to condense it down with only needed dimensions for support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if you need to use the field it is a simple SUM(MetricRolling) and you are set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 13:32:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-29T13:32:47Z</dc:date>
    <item>
      <title>Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631897#M542669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEE(QVW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a chart, pivot table( product, year month ---- like dimensions and sum(Sales) expresison and the rollongo of sum(Sales)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do: sum({$&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE={"$( ='&amp;gt;='&amp;amp;(date(monthend(max(DATE),-12)))&amp;amp;'&amp;lt;='&amp;amp;MONTHEND(MAX(DATE)) "} &amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expected result is in yellow in the excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 06:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631897#M542669</guid>
      <dc:creator />
      <dc:date>2014-05-29T06:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631898#M542670</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;This is the correct syntax for your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DATE={"&amp;gt;=$(=MonthStart(Max(DATE),-12)) &amp;lt;=$(=MonthEnd(Max(DATE)))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: assumes that DATE is a date field formatted in the default date format for your system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 07:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631898#M542670</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-29T07:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631899#M542671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See atach, not give me the spected result..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you do an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 07:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631899#M542671</guid>
      <dc:creator />
      <dc:date>2014-05-29T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631900#M542672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post shows how to do simple point in time calculations using a Calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6593"&gt;http://community.qlik.com/docs/DOC-6593&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;QlikCentral.Com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631900#M542672</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-05-29T08:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631901#M542673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THE PROBLEM IS THAT NOT ACCUMULATE, ONLY SUM THAT COLUMN..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i NEED TO DO AGGR??? BY MONTH AND YEAR??? OR PUT IN SET ANALYSIS, YEAR=,MONTH=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631901#M542673</guid>
      <dc:creator />
      <dc:date>2014-05-29T08:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631902#M542674</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;Use this Exp in Pivot table,&lt;/P&gt;&lt;P&gt;RangeSum(Above(TOTAL sum(SALES),0,RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631902#M542674</guid>
      <dc:creator />
      <dc:date>2014-05-29T08:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631903#M542675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IT WILL BE A SOLUTION, BUT WATH ABOUT, IF YOU HAVE MORE THAN ONE YEAR??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT SUM ALL, NOT A SOLUTION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631903#M542675</guid>
      <dc:creator />
      <dc:date>2014-05-29T08:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631904#M542676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AND WITH THIS HOW DO YOU SOLVE MI PROBLEM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i CREATED A CHART,&lt;/P&gt;&lt;P&gt;DIMENSION. COUNTRY YEAR AND MONTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPRESION &lt;/P&gt;&lt;P&gt;1)SUM (SALES)&lt;/P&gt;&lt;P&gt;2) SUM({&amp;lt;Date={'$(=max(Date))'},%Flag_PreviousMonth_M12={1} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631904#M542676</guid>
      <dc:creator />
      <dc:date>2014-05-29T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631905#M542677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, there's a bug I didn't notice from the revised version I recently updated. I will fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now if you goto the CLEAN UP tab and change the code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #808080;"&gt;Calendar:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Calendar_Previous_Periods&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; font-size: 8pt;"&gt;$(v_RangeMaxString)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;%KeyDate&lt;/SPAN&gt;&lt;STRONG style="font-size: 8pt;"&gt; &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&amp;gt;=&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;Possible_KeyDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #808080;"&gt;;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the less than to a greater than as shown above and re-run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That formula will give you %KeyDate 1-May-13 to 31-May-13 if you're $(=max(Date)) = 29-May-14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PITCAL.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/59753_PITCAL.png" style="width: 620px; height: 407px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 09:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631905#M542677</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-05-29T09:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631906#M542678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create it in Load Script. Rolling Sum and Rolling Averages are best done in the Load Script from my adventures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take metric and create a copy of it, as MetricRolling and then move the Date field by 1 month or 1 week depending on the granularity needed by the metric for the number of rolling weeks/months etc. and then SUM() Group by this new MetricRolling field to condense it down with only needed dimensions for support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if you need to use the field it is a simple SUM(MetricRolling) and you are set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 13:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-rolling/m-p/631906#M542678</guid>
      <dc:creator />
      <dc:date>2014-05-29T13:32:47Z</dc:date>
    </item>
  </channel>
</rss>

