<?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: Calculating current month using prior month value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-current-month-using-prior-month-value/m-p/1274057#M400378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could replace your current 'Opening Stock (T)' expression for something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Month = 'Jan', Sum(&amp;lt;field&amp;gt;), Before([Closing Stock (T)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it serves...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Mar 2017 15:50:39 GMT</pubDate>
    <dc:creator>hector_munoz</dc:creator>
    <dc:date>2017-03-12T15:50:39Z</dc:date>
    <item>
      <title>Calculating current month using prior month value</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-current-month-using-prior-month-value/m-p/1274056#M400377</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;This is my first time posting on Qlik Community as it is the first time I have encountered this issue.&lt;/P&gt;&lt;P&gt;Really hope someone can help me here I'm quite desperate&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/156023_Example.png" style="font-size: 10pt; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the screenshot above I need some help with an expression to calculate the opening stock for months Feb - Dec.&lt;/P&gt;&lt;P&gt;January opening stock is calculated using a file upload, where as the opening stock for the following months uses the closing stock for the month prior i.e. Feb Opening Stock = Jan Closing Stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closing stock = Opening Stock - Sales Actual + Production Actual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that the screenshot is a pivoted view of my table in Qlikview i.e. the months are a dimension and Opening Stock, Sales Actual, etc are expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any ideas on an expression that includes the calculation for the January Opening Stock as well as the subsequent month's opening stock please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 21:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-current-month-using-prior-month-value/m-p/1274056#M400377</guid>
      <dc:creator />
      <dc:date>2017-03-11T21:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating current month using prior month value</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-current-month-using-prior-month-value/m-p/1274057#M400378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could replace your current 'Opening Stock (T)' expression for something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Month = 'Jan', Sum(&amp;lt;field&amp;gt;), Before([Closing Stock (T)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it serves...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2017 15:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-current-month-using-prior-month-value/m-p/1274057#M400378</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-12T15:50:39Z</dc:date>
    </item>
  </channel>
</rss>

