<?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 My expression work fine for current month , but i unable to get last month stock amount ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451790#M168591</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;&lt;/P&gt;&lt;P&gt;I have below expression :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;YearMonth = {"&amp;lt;=$(=Max({$}[YearMonth]))"}, month = &amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is working fine , because it return the correct stock value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to modify the expression so that it will display Jan 2013 stock amount :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;YearMonth = {"&amp;lt;=$(=Max({$}[YearMonth])-1)"}, month = &amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not return the right value , can some one advise me where i go wrong ?&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>Sun, 14 Apr 2013 15:10:53 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2013-04-14T15:10:53Z</dc:date>
    <item>
      <title>My expression work fine for current month , but i unable to get last month stock amount ?</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451790#M168591</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;&lt;/P&gt;&lt;P&gt;I have below expression :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;YearMonth = {"&amp;lt;=$(=Max({$}[YearMonth]))"}, month = &amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is working fine , because it return the correct stock value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to modify the expression so that it will display Jan 2013 stock amount :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;YearMonth = {"&amp;lt;=$(=Max({$}[YearMonth])-1)"}, month = &amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not return the right value , can some one advise me where i go wrong ?&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>Sun, 14 Apr 2013 15:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451790#M168591</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-14T15:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: My expression work fine for current month , but i unable to get last month stock amount ?</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451791#M168592</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;money(&lt;/P&gt;&lt;P&gt;if([Exec P&amp;amp;L Level] = 's','',&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;YearMonth = {"&amp;lt;=$(=Date(Max({$}[YearMonth])-2,'YY MMM'))"}, month = &amp;gt;}[Amount])&lt;BR /&gt;)&lt;BR /&gt;, $(vCurrency))&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>Mon, 15 Apr 2013 06:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451791#M168592</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-15T06:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: My expression work fine for current month , but i unable to get last month stock amount ?</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451792#M168593</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =money(if([Exec P&amp;amp;L Level] = 's','',Sum({$&amp;lt;YearMonth = {"&amp;lt;=$(=Date(addmonths(Max({$}[YearMonth]),-2),'YY MMM'))"}, month = &amp;gt;}[Amount])), $(vCurrency))&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>Mon, 15 Apr 2013 11:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451792#M168593</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-15T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: My expression work fine for current month , but i unable to get last month stock amount ?</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451793#M168594</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;Many Thank you for your help , it work fine now. ( Now i understand addmonths ) , now i am sure my project will be successful.&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 14:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451793#M168594</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-15T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: My expression work fine for current month , but i unable to get last month stock amount ?</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451794#M168595</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;I wish to plot the stock trend by month . but then i am not able to make X axis display by YearMonth. I have try put diamension with YearMonth it also don't work, may be i need to change the expression into 1 expression , as now i use 1 month 1 expression, below link is my post.&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/335599#335599"&gt;http://community.qlik.com/message/335599#335599&lt;/A&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>Mon, 15 Apr 2013 15:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-work-fine-for-current-month-but-i-unable-to-get/m-p/451794#M168595</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-15T15:11:05Z</dc:date>
    </item>
  </channel>
</rss>

