<?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: Days of Supply Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577183#M214689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dhiraj,&lt;/P&gt;&lt;P&gt;Please close this thread by selecting correct answer and create a new thread so that other members can also take interest in new thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 09:48:55 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-02-27T09:48:55Z</dc:date>
    <item>
      <title>Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577169#M214675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing problem of calculating the 'days of supply' according to stock on hand . for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date, Forecast, Production, Reciept, Initial Stock, Stock on Hand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01-01-13, 1217, 795, 707, 600, 885&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02-01-13, 1197, 670, 628, 885, 986&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-01-13, 1101, 585, 833, 986, 1303&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04-01-13, 1161, 709, 550, 1303, 1401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05-01-13, 1431, 580, 529, 1401, 1079&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06-01-13, 1226, 613, 737, 1079, 1203&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07-01-13, 794, 717, 796, 1203, 1922&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-01-13, 969, 701, 654, 1922, 2308&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09-01-13, 1277, 652, 641, 2308, 2324&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-01-13, 1045, 628, 850, 2324, 2757&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11-01-13, 1100, 587, 767, 2757, 3011&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12-01-13, 740, 692, 862, 3011, 3825&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected result of above is as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date, Forecast, Production, Reciept, Initial Stock, Stock on Hand, Days of Supply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01-01-13, 1217, 795, 707, 600, 885, 0.739&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02-01-13, 1197, 670, 628, 885, 986, 0.895&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-01-13, 1101, 585, 833, 986, 1303, 1.099&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04-01-13, 1161, 709, 550, 1303, 1401, 0.979&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05-01-13, 1431, 580, 529, 1401, 1079, 0.88&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06-01-13, 1226, 613, 737, 1079, 1203, 1.42&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07-01-13, 794, 717, 796, 1203, 1922, 1.74&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-01-13, 969, 701, 654, 1922, 2308, 1.98&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09-01-13, 1277, 652, 641, 2308, 2324, 2.24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic of calculating 'Days of Supply' in above script 'Stock on Hand' = 885 we will compare next day of Forecast which is 1197 if &lt;/P&gt;&lt;P&gt;'Stock on Hand' &amp;gt;= Forecast&amp;nbsp; then we consider 'days of supply' =1 .&lt;/P&gt;&lt;P&gt;if&amp;nbsp; 'Stock on Hand' &amp;lt;&amp;nbsp; Forecast then 'days of supply' = 885/1197 which is '0.739' day as usually next day for&amp;nbsp; 02-01-13&amp;nbsp; &lt;/P&gt;&lt;P&gt;'days of supply' = 986/1101 which is '0.895' day .&lt;/P&gt;&lt;P&gt;Now&amp;nbsp; 'Days of Supply' for 03-01-13&amp;nbsp; is here&amp;nbsp; 1303 is greater than 1161 then 'Days of Supply' = 1+(1303-1161)/1431 which is '1.099'&lt;/P&gt;&lt;P&gt;Please anyone help me . Actually its urgent and I'm not getting that how to solve this problem .Please anyone send me some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 06:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577169#M214675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T06:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577170#M214676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What wrong you are getting &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577170#M214676</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-02-27T07:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577171#M214677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD *, RowNo() as ID INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date,&amp;nbsp; Forecast, Production, Reciept, Initial Stock, Stock on Hand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01-01-13, 1217, 795, 707, 600, 885&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02-01-13, 1197, 670, 628, 885, 986&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-01-13, 1101, 585, 833, 986, 1303&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04-01-13, 1161, 709, 550, 1303, 1401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05-01-13, 1431, 580, 529, 1401, 1079&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06-01-13, 1226, 613, 737, 1079, 1203&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07-01-13, 794, 717, 796, 1203, 1922&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-01-13, 969, 701, 654, 1922, 2308&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09-01-13, 1277, 652, 641, 2308, 2324&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-01-13, 1045, 628, 850, 2324, 2757&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11-01-13, 1100, 587, 767, 2757, 3011&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12-01-13, 740, 692, 862, 3011, 3825&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IF(Peek(Forecast,ID,'Temp')&amp;lt;=[Stock on Hand],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1+(([Stock on Hand]-Peek(Forecast,ID,'Temp'))/Peek(Forecast,ID+1,'Temp')),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Stock on Hand]/Peek(Forecast,ID,'Temp')) as [Days of Supply]&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Order By ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATED : FINAL TABLE WITH ORDER BY ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DONT FORGET TO SORT THE TABLE BY ID IN UI....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577171#M214677</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577172#M214678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sujeetsing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually here i'm apply logic as below&lt;/P&gt;&lt;P&gt;if(Forecast&amp;gt;Peek(SOH),Peek(SOH)/Forecast,if(Forecast=Peek(SOH),1,if(Forecast&amp;lt;Peek(SOH),Peek(SOH)-Forecast=&lt;/P&gt;&lt;P&gt;1+if(Peek(SOH)-Forecast&amp;gt;Next day of Forecast,1,if(Peek(SOH)-Forecast = Next day of Forecast,1,&lt;/P&gt;&lt;P&gt;Peek(SOH)-Forecast/Next day of Forecast)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am try to apply this logic but i'm not getting that how we implement the Next day of Forecast in the logic..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577172#M214678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T07:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577173#M214679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried my solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577173#M214679</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T07:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577174#M214680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you do &amp;lt; instead of &amp;lt;=, there is no need of third condition....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(Peek(Forecast,ID,'Temp')&amp;lt;[Stock on Hand],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1+(([Stock on Hand]-Peek(Forecast,ID,'Temp'))/Peek(Forecast,ID+1,'Temp')),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Stock on Hand]/Peek(Forecast,ID,'Temp')) as [Days of Supply]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577174#M214680</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T07:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577175#M214681</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;date(date#(date, 'dd-mm-yy')) as date, Forecast, Production, Reciept, [Initial Stock], [Stock on Hand],&lt;/P&gt;&lt;P&gt;RowNo() AS RowNum &lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date, Forecast, Production, Reciept, Initial Stock, Stock on Hand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01-01-13, 1217, 795, 707, 600, 885&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02-01-13, 1197, 670, 628, 885, 986&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-01-13, 1101, 585, 833, 986, 1303&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04-01-13, 1161, 709, 550, 1303, 1401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05-01-13, 1431, 580, 529, 1401, 1079&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06-01-13, 1226, 613, 737, 1079, 1203&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07-01-13, 794, 717, 796, 1203, 1922&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-01-13, 969, 701, 654, 1922, 2308&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09-01-13, 1277, 652, 641, 2308, 2324&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-01-13, 1045, 628, 850, 2324, 2757&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11-01-13, 1100, 587, 767, 2757, 3011&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12-01-13, 740, 692, 862, 3011, 3825];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If([Stock on Hand] &amp;gt; Peek(Forecast,RowNum,'Test'), 1 + (([Stock on Hand] - Peek(Forecast,RowNum,'Test'))/ Peek(Forecast,RowNum+1,'Test')),&lt;/P&gt;&lt;P&gt; [Stock on Hand]/Peek(Forecast,RowNum,'Test'))as [Days of Supply]&lt;/P&gt;&lt;P&gt;Resident Test&lt;/P&gt;&lt;P&gt;Order by date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577175#M214681</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-02-27T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577176#M214682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u so much Manish for the fast reply .&lt;/P&gt;&lt;P&gt;Its working by logically but in last when we see for stock on hand 2324 the days of supply is 2.16 but it should be 2.2418 days as below in the screen.&lt;IMG alt="supplyImage.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53938_supplyImage.PNG.png" /&gt;@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577176#M214682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T08:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577177#M214683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you double check with your own calculation?&lt;/P&gt;&lt;P&gt;My one is looking OK...may be mistake at your end..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577177#M214683</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T08:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577178#M214684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u so much Jagan ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577178#M214684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T08:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577179#M214685</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;When calculated manually the value is 2.162 not 2.2418 crosscheck again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577179#M214685</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-02-27T08:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577180#M214686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me idea ,Actually i want if Stock on Hand after the comparison of Forecast is Remaining then we will consider only that days as below for Stock on Hand 2757 the days of supply should be 3 and for Stock on Hand 3011 the days of supply should be 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the calculation of days of supply for Stock on Hand 2757 as&amp;nbsp;&amp;nbsp; { 2757-1100 = 1657 and then 1657 -740=917 and then 917-878 = 39} at this situation we consider only 3 days for days of supply as usually for Stock on Hand 3011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;IMG alt="supplyImage.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53939_supplyImage.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577180#M214686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T08:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577181#M214687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your problem solved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 09:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577181#M214687</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577182#M214688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot its working but i want this thing also as below&lt;/P&gt;&lt;P&gt;Please give me idea ,Actually i want if Stock on Hand after the comparison of Forecast is Remaining then we will consider only that days as below for Stock on Hand 2757 the days of supply should be 3 and for Stock on Hand 3011 the days of supply should be 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the calculation of days of supply for Stock on Hand 2757 as&amp;nbsp;&amp;nbsp; { 2757-1100 = 1657 and then 1657 -740=917 and then 917-878 = 39} at this situation we consider only 3 days for days of supply as usually for Stock on Hand 3011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me .&lt;IMG alt="supplyImage.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53940_supplyImage.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 09:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577182#M214688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577183#M214689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dhiraj,&lt;/P&gt;&lt;P&gt;Please close this thread by selecting correct answer and create a new thread so that other members can also take interest in new thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 09:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577183#M214689</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577184#M214690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here ur logic is correct its working but when we apply that logic in my whole data then its not working properly from starting its work but in middle its give the wrong 'days of supply' as below in the image I have marked this is the wrong 'days of supply' and the below of marking the all data gives the wrong value. Please if possible then check it and help me . thank u so much .&lt;/P&gt;&lt;P&gt;I also attach my qvw and data also ..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="supplyImage.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53956_supplyImage.PNG.png" style="width: 620px; height: 474px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577184#M214690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T14:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Days of Supply Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577185#M214691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dhiraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever developed the right statement for this logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need exactly what you specified before. A DOS logic that look forward and and if the forecast is higher than the demand, it keeps looking at every day in the future to figure out the amount of DOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-of-Supply-Problem/m-p/577185#M214691</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2016-10-20T13:00:36Z</dc:date>
    </item>
  </channel>
</rss>

