<?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: 13 week average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539853#M690174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TimyHop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script does not support set_analysis (what I proposed), but it should be possible to put your formula here into the script - just try it out, if the commands turn blue, they are supported and functional. You can then put this expression into your LOAD statement and you'll have an additional field that you can use i a diagram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 12:46:51 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-10-10T12:46:51Z</dc:date>
    <item>
      <title>13 week average</title>
      <link>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539849#M690170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 11:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539849#M690170</guid>
      <dc:creator />
      <dc:date>2013-10-10T11:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: 13 week average</title>
      <link>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539850#M690171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOU SHOUL DO IT WHIT THE CALENDAR DATE NOT SALES DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THAT HELPS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539850#M690171</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2013-10-10T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: 13 week average</title>
      <link>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539851#M690172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TimmyHop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest a two-step process:&lt;/P&gt;&lt;P&gt;- Devise a way to assign a running number (1,2,3...) to the weeks that have sales - not to the ones without. Then you'll have a new field, say you call it "Week_w_Sales" (numeric).&lt;/P&gt;&lt;P&gt;- You could then use set_analysis and tell QlikView to calculate the avg. of all those weeks_with_sales between the &amp;gt;week_with_sales 13 weeks ago&amp;lt; and the current week. Should look sth like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; avg({1&amp;lt;Week_with_sales = {"'&amp;gt;= $(=(Week(TODAY())-13))"}&amp;gt;} sales) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539851#M690172</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-10T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: 13 week average</title>
      <link>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539852#M690173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply.&lt;/P&gt;&lt;P&gt;i already have a chart expression&amp;nbsp; that seems to do exactly what i want..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539852#M690173</guid>
      <dc:creator />
      <dc:date>2013-10-10T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: 13 week average</title>
      <link>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539853#M690174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TimyHop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script does not support set_analysis (what I proposed), but it should be possible to put your formula here into the script - just try it out, if the commands turn blue, they are supported and functional. You can then put this expression into your LOAD statement and you'll have an additional field that you can use i a diagram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-week-average/m-p/539853#M690174</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-10T12:46:51Z</dc:date>
    </item>
  </channel>
</rss>

