<?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 Script logic required in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188624#M384242</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;&lt;/P&gt;&lt;P&gt;Need to do calculation as per the attached excel. As formula works in circular fashion , I am not sure how to do it in QlikView.&lt;/P&gt;&lt;P&gt;I want to do it in script only&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 12:41:10 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-09-20T12:41:10Z</dc:date>
    <item>
      <title>Script logic required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188624#M384242</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;&lt;/P&gt;&lt;P&gt;Need to do calculation as per the attached excel. As formula works in circular fashion , I am not sure how to do it in QlikView.&lt;/P&gt;&lt;P&gt;I want to do it in script only&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 12:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188624#M384242</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-09-20T12:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script logic required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188625#M384243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be better to describe what you are trying to achieve (and show/explain the Excel formula) and the expected results, rather than requiring people to try and uncover that information to help you. The people providing help here are not Qlik employees (for the most part) and are providing this (free) service voluntarily. If you make it hard to help you, you will be less likely to get useful advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 13:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188625#M384243</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-20T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script logic required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188626#M384244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I am not sure how I will be able to explain the formula here which will be difficult to explain, but in excel there is already formula applied and required output is there. I thought this will be easy instead. Sorry for the inconvenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 14:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188626#M384244</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-09-20T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script logic required</title>
      <link>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188627#M384245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD RowNo() as SNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Date) as Date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time([Release Time]) as [Release Time], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Release Qty], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Progressive release], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time([Portal Required Time]) as [Portal Required Time], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Portal Required Qty],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Portal Required Time] &amp;gt; [Release Time] and Delivery &amp;gt; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Portal Required Time] &amp;gt; [Release Time] and Delivery &amp;lt;= If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery)) as [Delivery R],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Portal Required Time] &amp;gt; [Release Time] and Delivery &amp;gt; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Portal Required Time] &amp;gt; [Release Time] and Delivery &amp;lt;= If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery)), Alt(Peek('Prog Del R'), 0)) as [Prog Del R],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)) as [To be Deliver],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Portal Required Time] &amp;gt; [Release Time] and Delivery &amp;gt; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Portal Required Time] &amp;gt; [Release Time] and Delivery &amp;lt;= If([Release Qty] - Alt(Peek('AB'), 0) &amp;lt; 0, 0, [Release Qty] - Alt(Peek('AB'), 0)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery)), Alt(Peek('Prog Del R'), 0), -[Progressive release]) as [AB]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Len(Trim(Date)) &amp;gt; 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138039_Capture.PNG" style="height: 82px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 15:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-logic-required/m-p/1188627#M384245</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-20T15:10:01Z</dc:date>
    </item>
  </channel>
</rss>

