<?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 get the previous month data at the expression level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436529#M489919</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;Use this in getting the previous month.&lt;/P&gt;&lt;P&gt;Date(AddMonths(Date#(Today(),'YYYY-MM-DD'),-1), 'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 03:23:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-22T03:23:05Z</dc:date>
    <item>
      <title>How to get the previous month data at the expression level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436528#M489918</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&amp;nbsp; facing the&amp;nbsp; issue in getting the data for the previous month and i have written the expression as to get the previous month closing inventory qty as current month opening inventory qty but the thing is i am not getting this instead i am getting 0 value &lt;/P&gt;&lt;P&gt; The expression which i have used is as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Month :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CalendarMonthID={$(VCurrentCalendarFiscalMonth)}&amp;gt;}inventoryqty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous Month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CalendarMonthID={$(Vcurrentcalendarfiscalmonth-1)}&amp;gt;}inventoryqty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still i am not able to get the exact value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this as this is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smita &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 02:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436528#M489918</guid>
      <dc:creator />
      <dc:date>2012-10-22T02:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous month data at the expression level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436529#M489919</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;Use this in getting the previous month.&lt;/P&gt;&lt;P&gt;Date(AddMonths(Date#(Today(),'YYYY-MM-DD'),-1), 'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 03:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436529#M489919</guid>
      <dc:creator />
      <dc:date>2012-10-22T03:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous month data at the expression level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436530#M489920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please find Month-Year(Jan-2012) in your application.&lt;/P&gt;&lt;P&gt;if not then calculate from Month&lt;/P&gt;&lt;P&gt;then in expression use below codes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Month&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MonthYearField={$(=Date(Max(MonthYearfield),'MMM-YYY'))}&amp;gt;} amountfield)&lt;/P&gt;&lt;P&gt;previous MONTH&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MonthYearField={$(=Date(addmonths(Max(MonthYearfield),-1),'MMM-YYY'))}&amp;gt;} amountfield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 06:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436530#M489920</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-10-22T06:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous month data at the expression level</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436531#M489921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the help ,i will try this and will let you know &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-month-data-at-the-expression-level/m-p/436531#M489921</guid>
      <dc:creator />
      <dc:date>2012-10-26T11:25:24Z</dc:date>
    </item>
  </channel>
</rss>

