<?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: Monthly Inventory report based on SAP data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436573#M557850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can:&lt;/P&gt;&lt;P&gt;1. Set up a date island that contains combinations of all the dates and relevant dimensions (e.g. ProductID)&lt;/P&gt;&lt;P&gt;2. Set up an AccumulationKey alongside you Movements data, which you can test for to see if the month or date has changed the data&lt;/P&gt;&lt;P&gt;3. Load the Movement data into the date island, in reverse order, testing for whether the Accumulation key has changed. If it has (and a new month or date is being loaded) then you can load in the previous balance minus the sum of the movements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this excellent example: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/100042#100042" title="http://community.qlik.com/message/100042#100042"&gt;http://community.qlik.com/message/100042#100042&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If does the accumulation going forwards in time, but can be changed to go backwards in time.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 13:52:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-06-04T13:52:32Z</dc:date>
    <item>
      <title>Monthly Inventory report based on SAP data</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436572#M557849</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;I am trying to build monthly inventory report from the SAP. There is "current stock" in SAP and all inventory movements from history. I would need to build a logic in expression (in expression I think is easiest?) that would calculate monthly stock levels based on these inputs. Any ideas how to write that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached simple example of situation. I have there column "Stock" in where I would like to see Month end inventories. In this example I have values 5500, 9000, 7000, 8000 which I would like to see under month 5 because it is month end inventory of that month. In a same way I want to see figures 4000, 7000, 5000 &amp;amp; 8000 as month end inventoy (in column stock) in period 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I was clear with my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much already beforehand!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Janne &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436572#M557849</guid>
      <dc:creator />
      <dc:date>2013-06-04T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Inventory report based on SAP data</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436573#M557850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can:&lt;/P&gt;&lt;P&gt;1. Set up a date island that contains combinations of all the dates and relevant dimensions (e.g. ProductID)&lt;/P&gt;&lt;P&gt;2. Set up an AccumulationKey alongside you Movements data, which you can test for to see if the month or date has changed the data&lt;/P&gt;&lt;P&gt;3. Load the Movement data into the date island, in reverse order, testing for whether the Accumulation key has changed. If it has (and a new month or date is being loaded) then you can load in the previous balance minus the sum of the movements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this excellent example: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/100042#100042" title="http://community.qlik.com/message/100042#100042"&gt;http://community.qlik.com/message/100042#100042&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If does the accumulation going forwards in time, but can be changed to go backwards in time.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436573#M557850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-04T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Inventory report based on SAP data</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436574#M557851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this might be excatly what I was looking&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Janne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 10:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436574#M557851</guid>
      <dc:creator />
      <dc:date>2013-06-17T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Inventory report based on SAP data</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436575#M557852</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;I have a problem with this logic. Obviously I am doing something wrong, but I can't see where. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I adapted your logic, but for some reason I can't get anything into monthly opening balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the script I am using in inventory accumulation calculation. I have also attached a picture from table view, in where you may see my problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43635" class="jive-image-thumbnail jive-image" onclick="" alt="invproblem.JPG" src="https://community.qlik.com/legacyfs/online/43635_invproblem.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InventoryAccumulations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccumulationKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthlyMovementKG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() = 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccumulationKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccumulationKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ClosingAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OpeningAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() = 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccumulationKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccumulationKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthlyMovementKG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ClosingAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthlyMovementKG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ClosingAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Plant&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Material_MATNR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MoveYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MoveMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;makedate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MoveYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MoveMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'MM-YY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InvPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;BR /&gt; InventoryAccumulationsTemp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Many thanks already beforehand!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Janne&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 11:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Inventory-report-based-on-SAP-data/m-p/436575#M557852</guid>
      <dc:creator />
      <dc:date>2013-07-04T11:48:01Z</dc:date>
    </item>
  </channel>
</rss>

