<?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 when user select month = Oct , year = 2012 , it will sum up all data from starting till 2012 Oct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450497#M168120</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;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to compute Stock Amount on hand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make thing simple , for Jan 2012 till Jan 2013 , on the first of the month i add Qty 2 , and on 17 of the month i take out Qty 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every month i have Stock Balance Qty 1 , because 2-1=1 . And at the end of 13 month , my stock balance = 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need expression to display Stock balance as below behavious :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user select on month=1 year = 2012 , i need the stock balance display 1.&lt;/P&gt;&lt;P&gt;when user select on month=2 year = 2012 , i need the stock balance display 2.&lt;/P&gt;&lt;P&gt;when user select on month=3 year = 2012 , i need the stock balance display 3.&lt;/P&gt;&lt;P&gt;when user select on month=4 year = 2012 , i need the stock balance display 4.&lt;/P&gt;&lt;P&gt;when user select on month=5 year = 2012 , i need the stock balance display 5.&lt;/P&gt;&lt;P&gt;when user select on month=6 year = 2012 , i need the stock balance display 6.&lt;/P&gt;&lt;P&gt;when user select on month=7 year = 2012 , i need the stock balance display 7.&lt;/P&gt;&lt;P&gt;when user select on month=8 year = 2012 , i need the stock balance display 8.&lt;/P&gt;&lt;P&gt;when user select on month=9 year = 2012 , i need the stock balance display 9.&lt;/P&gt;&lt;P&gt;when user select on month=10 year = 2012 , i need the stock balance display 10.&lt;/P&gt;&lt;P&gt;when user select on month=11 year = 2012 , i need the stock balance display 11.&lt;/P&gt;&lt;P&gt;when user select on month=12 year = 2012 , i need the stock balance display 12.&lt;/P&gt;&lt;P&gt;when user select on month=1 year = 2013 , i need the stock balance display 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it will display 13 when i not select month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 17:14:35 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2013-04-12T17:14:35Z</dc:date>
    <item>
      <title>when user select month = Oct , year = 2012 , it will sum up all data from starting till 2012 Oct</title>
      <link>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450497#M168120</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;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to compute Stock Amount on hand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make thing simple , for Jan 2012 till Jan 2013 , on the first of the month i add Qty 2 , and on 17 of the month i take out Qty 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every month i have Stock Balance Qty 1 , because 2-1=1 . And at the end of 13 month , my stock balance = 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need expression to display Stock balance as below behavious :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user select on month=1 year = 2012 , i need the stock balance display 1.&lt;/P&gt;&lt;P&gt;when user select on month=2 year = 2012 , i need the stock balance display 2.&lt;/P&gt;&lt;P&gt;when user select on month=3 year = 2012 , i need the stock balance display 3.&lt;/P&gt;&lt;P&gt;when user select on month=4 year = 2012 , i need the stock balance display 4.&lt;/P&gt;&lt;P&gt;when user select on month=5 year = 2012 , i need the stock balance display 5.&lt;/P&gt;&lt;P&gt;when user select on month=6 year = 2012 , i need the stock balance display 6.&lt;/P&gt;&lt;P&gt;when user select on month=7 year = 2012 , i need the stock balance display 7.&lt;/P&gt;&lt;P&gt;when user select on month=8 year = 2012 , i need the stock balance display 8.&lt;/P&gt;&lt;P&gt;when user select on month=9 year = 2012 , i need the stock balance display 9.&lt;/P&gt;&lt;P&gt;when user select on month=10 year = 2012 , i need the stock balance display 10.&lt;/P&gt;&lt;P&gt;when user select on month=11 year = 2012 , i need the stock balance display 11.&lt;/P&gt;&lt;P&gt;when user select on month=12 year = 2012 , i need the stock balance display 12.&lt;/P&gt;&lt;P&gt;when user select on month=1 year = 2013 , i need the stock balance display 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it will display 13 when i not select month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450497#M168120</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-12T17:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: when user select month = Oct , year = 2012 , it will sum up all data from starting till 2012 Oct</title>
      <link>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450498#M168121</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;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max({$}[date]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount]&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2013 08:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450498#M168121</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-13T08:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: when user select month = Oct , year = 2012 , it will sum up all data from starting till 2012 Oct</title>
      <link>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450499#M168122</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;SPAN class="hps"&gt;See the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;example&lt;/SPAN&gt;. &lt;SPAN class="hps"&gt;Balance&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I added&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to the script&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in order to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;get&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hope this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2013 13:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450499#M168122</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2013-04-13T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: when user select month = Oct , year = 2012 , it will sum up all data from starting till 2012 Oct</title>
      <link>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450500#M168123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like your script most , because you give me the result i want. Now i am happy that i am able to implement your script in my actual qv doc. I think it sure work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 14:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450500#M168123</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-14T14:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: when user select month = Oct , year = 2012 , it will sum up all data from starting till 2012 Oct</title>
      <link>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450501#M168124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/335321#335321"&gt;http://community.qlik.com/message/335321#335321&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I start a new post , because you already solve my problem using the sample QV doc. Now when i apply your script in my expression it work fine , but i need to get the previous month stock amount , i am not able to do it , can you pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 03:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-user-select-month-Oct-year-2012-it-will-sum-up-all-data/m-p/450501#M168124</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-15T03:53:37Z</dc:date>
    </item>
  </channel>
</rss>

