<?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 Calculating Average Weeks and counting backwards based on Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219498#M503279</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;I have a table which has sales and Inventory.&lt;/P&gt;&lt;P&gt;I need to show the total sales for a certain time frame (week/year) and inventory as well, but also an average inventory.&lt;/P&gt;&lt;P&gt;If I select Year 2010 and Weeks 13, 14, 15 and 16 but use a variable for the number of weeks I want to use for Average Inventory what expression do I use?&lt;/P&gt;&lt;P&gt;Average Week Variable = 2 ( Inventory / inventory for weeks 15 and 16? )&lt;/P&gt;&lt;P&gt;How do I find and calculate week 16 and 15 average inventory? from week number = 16 (the highest number selected in the select data range)&lt;/P&gt;&lt;P&gt;If the Variable was 3, then I would need Total Inventory for the time frame chosen divided by the sum of Inventory weeks 16, 15 and 14.&lt;/P&gt;&lt;P&gt;Any assistance would be much, much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 18:00:11 GMT</pubDate>
    <dc:creator>CB308</dc:creator>
    <dc:date>2010-04-20T18:00:11Z</dc:date>
    <item>
      <title>Calculating Average Weeks and counting backwards based on Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219498#M503279</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;I have a table which has sales and Inventory.&lt;/P&gt;&lt;P&gt;I need to show the total sales for a certain time frame (week/year) and inventory as well, but also an average inventory.&lt;/P&gt;&lt;P&gt;If I select Year 2010 and Weeks 13, 14, 15 and 16 but use a variable for the number of weeks I want to use for Average Inventory what expression do I use?&lt;/P&gt;&lt;P&gt;Average Week Variable = 2 ( Inventory / inventory for weeks 15 and 16? )&lt;/P&gt;&lt;P&gt;How do I find and calculate week 16 and 15 average inventory? from week number = 16 (the highest number selected in the select data range)&lt;/P&gt;&lt;P&gt;If the Variable was 3, then I would need Total Inventory for the time frame chosen divided by the sum of Inventory weeks 16, 15 and 14.&lt;/P&gt;&lt;P&gt;Any assistance would be much, much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 18:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219498#M503279</guid>
      <dc:creator>CB308</dc:creator>
      <dc:date>2010-04-20T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Weeks and counting backwards based on Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219499#M503280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Candiceb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a the answer to this trouble? I'm trying to do the same and I'm really confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 23:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219499#M503280</guid>
      <dc:creator />
      <dc:date>2012-01-19T23:05:36Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Weeks and counting backwards based on Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219500#M503281</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 may help you a little bit, I use it for calculating the weeks of inventory base on average sales for previous 13 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ([Inventory]) / RangeAvg( Before( SUM([Sales]),0,13))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 15:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Weeks-and-counting-backwards-based-on/m-p/219500#M503281</guid>
      <dc:creator />
      <dc:date>2012-05-28T15:29:45Z</dc:date>
    </item>
  </channel>
</rss>

