<?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: Calculate stock level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397414#M1161365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;As per what i have understood this mite be your output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 09:43:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-03T09:43:40Z</dc:date>
    <item>
      <title>Calculate stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397413#M1161364</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;Sorry that I only post questions so far. I will assist people too when I get more familiar with the tool. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are running a clearance business - so we need to sell everything by a certain date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inventory:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Qty remaining&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/11&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05/11&lt;/TD&gt;&lt;TD&gt;450&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10/11&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Qty sold&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/11&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/11&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/11&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to build is a line chart with 2 lines -&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension - Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;1) Qty sold&lt;/P&gt;&lt;P&gt;2) (Qty remaining) divided by (number of days till deadline remaining)&lt;/P&gt;&lt;P&gt;i.e. how many units we need to sell daily on average to meet deadline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am totally new to qlikview (2-3 weeks of playing with it so far) I need some guidance how to do this line chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a couple of questions - &lt;/P&gt;&lt;P&gt;1) In the inventory table some dates are missing, how can I fix this?&lt;/P&gt;&lt;P&gt;2) How do I calculate the second expression? I need an input box for it, right? (deadline date), and then a formula like this? -&amp;nbsp; &lt;/P&gt;&lt;P&gt;(Qty remaining) / (deadline date - inventory date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Dec 2012 23:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397413#M1161364</guid>
      <dc:creator />
      <dc:date>2012-12-02T23:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397414#M1161365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;As per what i have understood this mite be your output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 09:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397414#M1161365</guid>
      <dc:creator />
      <dc:date>2012-12-03T09:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397415#M1161366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Priya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's kind of what I need - but I wanted to have both those expressions on one chart.&lt;/P&gt;&lt;P&gt;I tried to add the expression from the second chart you provided to the first one - but it errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to compare actual units sold pre day with how many we need to sell every day (forecast).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The forecast is calculated as Total inventory / number of days remaining till deadline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for looking!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-stock-level/m-p/397415#M1161366</guid>
      <dc:creator />
      <dc:date>2012-12-03T11:18:33Z</dc:date>
    </item>
  </channel>
</rss>

