<?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: Last 4 Week Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528503#M197519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two Dimensions are Client and Product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 15:27:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-08T15:27:56Z</dc:date>
    <item>
      <title>Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528501#M197517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to calculate Avg of last four (available) weeks in a straight chart that has two dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Sum({&amp;lt;WeekNum = {'&amp;lt;=$(=vCurrWeek)&amp;gt;$(=vCurrWeek - 4)'}&amp;gt; } sales), WeekNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where, WeekNum comes from Calendar table and vCurrWeek is the latest week available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing this, I get values for first three rows only and rest of the rows as blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528501#M197517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-08T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528502#M197518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the 2 dimensions you are using? Try in your set analysis &amp;gt;= otherwise you are evaluating for your vCurrWeek and vCurrWeek - 3&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;"&gt;Avg(Aggr(Sum({&amp;lt;WeekNum = {'&amp;lt;=$(=vCurrWeek)&amp;gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;$(=vCurrWeek - 4)'}&amp;gt; } sales), WeekNum))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;J&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528502#M197518</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-10-08T15:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528503#M197519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two Dimensions are Client and Product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528503#M197519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-08T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528504#M197520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to know which two dimensions are used....&lt;/P&gt;&lt;P&gt;try below code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AVG(AGGR(SUM({&amp;lt;WeekNum = {"&amp;gt;=$(vCurrWeek-3) &amp;lt;= $(vCurrWeek)"}&amp;gt;}sales), WeekNum))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528504#M197520</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-08T15:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528505#M197521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use &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;"&gt;=AVG(AGGR(SUM({&amp;lt;WeekNum = {"&amp;gt;=$(vCurrWeek-3) &amp;lt;= $(vCurrWeek)"}&amp;gt;}sales), WeekNum), Client, Product)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528505#M197521</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-08T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528506#M197522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(Aggr(Sum({&amp;lt;WeekNum =&amp;nbsp; {"&amp;gt;=$(vCurrWeek-3)&amp;lt;=$(vCurrWeek)"}&amp;gt;} Sales), Client, Product, WeekNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it brings back results but they don't seem correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 17:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528506#M197522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-08T17:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528507#M197523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try This&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Aggr(Avg(Sum({&amp;lt;WeekNum =&amp;nbsp; {"&amp;gt;=$(vCurrWeek-3)&amp;lt;=$(vCurrWeek)"}&amp;gt;} Sales)), Client, Product, WeekNum)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 19:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528507#M197523</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-08T19:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528508#M197524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be sure your week number is unique. I mean ; does your week number restart to 1 at the beginning of the year ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 22:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528508#M197524</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-10-08T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528509#M197525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample of your data? It would be easier to help &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, 08 Oct 2013 22:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528509#M197525</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-08T22:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Last 4 Week Average</title>
      <link>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528510#M197526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds like you want a rolling 4-week average and you're using week as a dimension in your chart. If that's correct I think this document can help you understand how to do that: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 06:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-4-Week-Average/m-p/528510#M197526</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-09T06:07:29Z</dc:date>
    </item>
  </channel>
</rss>

