<?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: How To: use Final Stock calculation as Initial Stock in Load Script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-To-use-Final-Stock-calculation-as-Initial-Stock-in-Load/m-p/1565782#M41214</link>
    <description>&lt;P&gt;I think what you really need is&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913" target="_blank" rel="noopener"&gt;Peek/Previous&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 12:31:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-04-05T12:31:31Z</dc:date>
    <item>
      <title>How To: use Final Stock calculation as Initial Stock in Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-use-Final-Stock-calculation-as-Initial-Stock-in-Load/m-p/1565747#M41210</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Im new in QS and i need to create an inventory with an initial stock from 201801 onwards .The problem is that i need to calculate te final stock for that period and use it as the iniStock for the rest. I cant do it in the app directly because i would have to insert every prev-period calculation in the new final stock and that as you already know, is completelly unefficient.&lt;/P&gt;&lt;P&gt;After all calculations, the table with my&amp;nbsp; final inventory looks like this:&lt;/P&gt;&lt;PRE&gt;INV_CFS_KU_Temp:
LOAD
YEARMONTH_Stock_Initial,
[BLEND],
[IniStock.ActQt] as IniSotck_Blend_KU,
CompraKG_Blend,
InterStockKU_Blend,
Consumo_Blend,
InterStockKU_Blend - Consumo_Blend as FinalStockBlend
Resident InventarioCFS_KU ;
Drop Table [InventarioCFS_KU];&lt;/PRE&gt;&lt;P&gt;I have the results i need for the firt period, but the problem, i should not be taking the IniStock for each period but the final form the prev period.&lt;/P&gt;&lt;P&gt;Sorry if im not explain very well, hopefully somebody have an idea to do this.&lt;/P&gt;&lt;P&gt;Thx.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-use-Final-Stock-calculation-as-Initial-Stock-in-Load/m-p/1565747#M41210</guid>
      <dc:creator>Gvmpro</dc:creator>
      <dc:date>2024-11-16T21:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: How To: use Final Stock calculation as Initial Stock in Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-use-Final-Stock-calculation-as-Initial-Stock-in-Load/m-p/1565782#M41214</link>
      <description>&lt;P&gt;I think what you really need is&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913" target="_blank" rel="noopener"&gt;Peek/Previous&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-use-Final-Stock-calculation-as-Initial-Stock-in-Load/m-p/1565782#M41214</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-05T12:31:31Z</dc:date>
    </item>
  </channel>
</rss>

