<?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 Days Cover Logic Calculation in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542263#M457170</link>
    <description>&lt;P&gt;Dear All, We have a requirement to create a Days Cover formula. Attached the sample file. Could anyone help me on the calculation? Thanks, Srini.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:29:43 GMT</pubDate>
    <dc:creator>rrsrini2907</dc:creator>
    <dc:date>2024-11-16T04:29:43Z</dc:date>
    <item>
      <title>Days Cover Logic Calculation in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542263#M457170</link>
      <description>&lt;P&gt;Dear All, We have a requirement to create a Days Cover formula. Attached the sample file. Could anyone help me on the calculation? Thanks, Srini.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542263#M457170</guid>
      <dc:creator>rrsrini2907</dc:creator>
      <dc:date>2024-11-16T04:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Days Cover Logic Calculation in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542338#M457171</link>
      <description>&lt;P&gt;Are the first 13 rows in the Excel how your data looks like? If it is, why can't you just do this If(Demand Date = Stock Date, Days Cover)? I mean I am not sure what the complication is?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542338#M457171</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-11T13:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Days Cover Logic Calculation in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542359#M457172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;The column from A to I is available.&lt;/P&gt;&lt;P&gt;But the other columns need to be derived and the final output as per row 18 should be created.&lt;/P&gt;&lt;P&gt;Hope it is clear now.&lt;/P&gt;&lt;P&gt;Attached the updated file as per the comments.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Srini.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 14:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542359#M457172</guid>
      <dc:creator>rrsrini2907</dc:creator>
      <dc:date>2019-02-11T14:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Days Cover Logic Calculation in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542364#M457173</link>
      <description>&lt;P&gt;These needed to be calculated in the script or on the front end of the app? Also, you need to see just the two rows with Days Cover&amp;nbsp; = 4 or do you need all rows to say Days Cover = 4 for Stock Date = 1/13/2019?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 14:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542364#M457173</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-11T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Days Cover Logic Calculation in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542669#M457174</link>
      <description>I want to display for Stock Date = 1/13/2019, Days cover as 4.&lt;BR /&gt;I would like to know whether I will be able to calculation in Front end or in Back end?&lt;BR /&gt;Which is the correct approach?&lt;BR /&gt;Any steps to achieve in Front end or Back end?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Srini.</description>
      <pubDate>Tue, 12 Feb 2019 06:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1542669#M457174</guid>
      <dc:creator>rrsrini2907</dc:creator>
      <dc:date>2019-02-12T06:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Days Cover Logic Calculation in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1543075#M457175</link>
      <description>&lt;P&gt;For Stock Date 1/14/2019, I am getting Days cover of 1 because my demand calculation is 196 for Demand date 1/14 and 1/15, why do you have 0?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 930px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5770i4613F90A6197E4BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Leaving that issue aside, I did it in the front end and got this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5771iFFC32DF9BB7AE58A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;Demand Cumm&lt;/P&gt;&lt;PRE&gt;=Aggr(RangeSum(Above(Sum(Demand), 0, RowNo())), [Stock Date], [Demand Date])&lt;/PRE&gt;&lt;P&gt;Demand vs. Stock&lt;/P&gt;&lt;PRE&gt;=Stock - Aggr(RangeSum(Above(Sum(Demand), 0, RowNo())), [Stock Date], [Demand Date])&lt;/PRE&gt;&lt;P&gt;Stock Out Flag&lt;/P&gt;&lt;PRE&gt;=If(Stock - Aggr(RangeSum(Above(Sum(Demand), 0, RowNo())), [Stock Date], [Demand Date]) &amp;lt; 0, 1, 0)&lt;/PRE&gt;&lt;P&gt;Stock Out date&lt;/P&gt;&lt;PRE&gt;=If(Stock - Aggr(RangeSum(Above(Sum(Demand), 0, RowNo())), [Stock Date], [Demand Date]) &amp;lt; 0, Null(), [Demand Date])&lt;/PRE&gt;&lt;P&gt;Max Stock Out Date&lt;/P&gt;&lt;PRE&gt;=Max(TOTAL &amp;lt;[Stock Date]&amp;gt; Aggr(If(Stock - Aggr(RangeSum(Above(Sum(Demand), 0, RowNo())), [Stock Date], [Demand Date]) &amp;lt; 0, Null(), [Demand Date]), [Stock Date], [Demand Date]))&lt;/PRE&gt;&lt;P&gt;Days Cover&lt;/P&gt;&lt;PRE&gt;=Max(TOTAL &amp;lt;[Stock Date]&amp;gt; Aggr(If(Stock - Aggr(RangeSum(Above(Sum(Demand), 0, RowNo())), [Stock Date], [Demand Date]) &amp;lt; 0, Null(), [Demand Date]), [Stock Date], [Demand Date])) - [Stock Date]&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Cover-Logic-Calculation-in-QlikView/m-p/1543075#M457175</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-12T14:08:56Z</dc:date>
    </item>
  </channel>
</rss>

