<?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: Create historic Stock Level Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921462#M986682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justine Willcox&lt;/P&gt;&lt;P&gt;Gysbert Wassenaar's solution is meets your requirement.&lt;/P&gt;&lt;P&gt;Can you attach the file with sample data you are using. So that it will help the folks to give faster solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 03:05:16 GMT</pubDate>
    <dc:creator>qlikviewwizard</dc:creator>
    <dc:date>2015-07-31T03:05:16Z</dc:date>
    <item>
      <title>Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921454#M986674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There QlikViewers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to develop the expression I need to show my historic stock levels.&amp;nbsp; The fields I am working with are;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Purchased Date&lt;/LI&gt;&lt;LI&gt;Sales Date&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to display my historic stock levels by referencing the Purchased Date to the Sales Date.&amp;nbsp; So, in this example....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 224pt;" width="298"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 44pt;" width="58"&gt;Item&lt;/TD&gt;&lt;TD style="width: 46pt;" width="61"&gt;Quantity&lt;/TD&gt;&lt;TD style="width: 78pt;" width="104"&gt;Purchased Date&lt;/TD&gt;&lt;TD style="width: 56pt;" width="75"&gt;Sales Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;Apples&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;01/01/2015&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;03/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;Oranges&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;03/01/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;Pears&lt;/TD&gt;&lt;TD align="right"&gt;25&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;02/01/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;Apples&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;02/01/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...the stock levels by item quantity by date would be;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 134pt;" width="179"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 78pt;" width="104"&gt;Date&lt;/TD&gt;&lt;TD style="width: 56pt;" width="75"&gt;Stock Level&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt;"&gt;01/01/2015&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt;"&gt;02/01/2015&lt;/TD&gt;&lt;TD align="right"&gt;325&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt;"&gt;03/01/2015&lt;/TD&gt;&lt;TD align="right"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15.0pt;"&gt;04/01/2015&lt;/TD&gt;&lt;TD align="right"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to work this out and have got completely stuck!&amp;nbsp; Any help appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921454#M986674</guid>
      <dc:creator />
      <dc:date>2015-07-30T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921455#M986675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do we have this line?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="179"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;04/01/2015&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 09:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921455#M986675</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-07-30T09:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921456#M986676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 09:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921456#M986676</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-30T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921457#M986677</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;The line 04/01/2015 was just to show that the stock level would still be at 275 on that day because no transactions had taken place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 09:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921457#M986677</guid>
      <dc:creator />
      <dc:date>2015-07-30T09:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921458#M986678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your reply.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work in your example qvw but I am not sure what the &lt;EM&gt;LEN(TRIM&lt;/EM&gt; statement in the load script is doing with the date and what the &lt;EM&gt;RANGESUM(ABOVE&lt;/EM&gt; expression is doing to the stock calculation.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked in the help menu but I have not understood.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could you explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 10:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921458#M986678</guid>
      <dc:creator />
      <dc:date>2015-07-30T10:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921459#M986679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if transaction is not taken place on 4,5,6... you still need to see this a a part of solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 10:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921459#M986679</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-07-30T10:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921460#M986680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, if no transactions have occured since 03/01/2015 I would want to see an entry for each day up to today.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So today would show as 30/07/2015, 275. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 10:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921460#M986680</guid>
      <dc:creator />
      <dc:date>2015-07-30T10:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921461#M986681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The len(trim(..)) is to check if there is a value or not. The rangesum function is used in combination with the above() function to accumulate the stock amounts of each row. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 10:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921461#M986681</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-30T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create historic Stock Level Count</title>
      <link>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921462#M986682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justine Willcox&lt;/P&gt;&lt;P&gt;Gysbert Wassenaar's solution is meets your requirement.&lt;/P&gt;&lt;P&gt;Can you attach the file with sample data you are using. So that it will help the folks to give faster solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 03:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-historic-Stock-Level-Count/m-p/921462#M986682</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-07-31T03:05:16Z</dc:date>
    </item>
  </channel>
</rss>

