<?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: Previous 13 weeks Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735488#M1072702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that already, I think rowno or columnno need to be applied.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2014 16:16:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-08T16:16:31Z</dc:date>
    <item>
      <title>Previous 13 weeks Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735484#M1072697</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;I am trying to calculate a specific metric for business which is called Weeks of Stock. The formula is Latest week inventory/avg of last 13 weeks sales. I have attached an example in excel. In excel its pretty simple to do, but how can I write an expression Qlikview which will give me sum of previous 13 weeks sales out. Please refer the excel to see the required calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 23:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735484#M1072697</guid>
      <dc:creator />
      <dc:date>2014-08-07T23:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 13 weeks Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735485#M1072698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent paper on the subject here:&lt;/P&gt;&lt;P&gt;&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;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 23:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735485#M1072698</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-08-07T23:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 13 weeks Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735486#M1072699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for thread. I applied the set expression and its working when the week is arranged vertically. However my specific requirement to arrange the week in a horizontal way.&lt;/P&gt;&lt;P&gt;The expression I used&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Inventory Net USD Price]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sellout Net USD Price]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,13))/13) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="Picture1.png" class="jive-image" height="330" src="https://community.qlik.com/legacyfs/online/64045_Picture1.png" width="295" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Requirement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="Picture2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64044_Picture2.png" style="width: 620px; height: 64px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope you can help me modify the expression to accommodate weeks in above manner.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Simky&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 16:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735486#M1072699</guid>
      <dc:creator />
      <dc:date>2014-08-08T16:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 13 weeks Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735487#M1072700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at before() instead of above().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 16:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735487#M1072700</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-08-08T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 13 weeks Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735488#M1072702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that already, I think rowno or columnno need to be applied.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 16:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-13-weeks-Sales/m-p/735488#M1072702</guid>
      <dc:creator />
      <dc:date>2014-08-08T16:16:31Z</dc:date>
    </item>
  </channel>
</rss>

