<?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 find Previous Month Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432891#M161311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the solution, &lt;/P&gt;&lt;P&gt;Last three months still not working well if you notice, the second expression for last three months&amp;nbsp; will give last four month's data .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 12:15:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-19T12:15:53Z</dc:date>
    <item>
      <title>How to find Previous Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432889#M161309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumptions: suppose current month is April.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: I need to write two expressions, First Expression will find the total amount of last month (i.e: March=1350 ) and the second expression will find the total of last three months (i.e:Feb=990,+ Mar=1350, + April=950; Total of last three months= 3290,Note : Last three months includes current month as well&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;Zain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432889#M161309</guid>
      <dc:creator />
      <dc:date>2012-10-19T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Previous Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432890#M161310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 12:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432890#M161310</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-10-19T12:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Previous Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432891#M161311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the solution, &lt;/P&gt;&lt;P&gt;Last three months still not working well if you notice, the second expression for last three months&amp;nbsp; will give last four month's data .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 12:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432891#M161311</guid>
      <dc:creator />
      <dc:date>2012-10-19T12:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Previous Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432892#M161312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the above qvw file again,but its better to use date field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 12:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432892#M161312</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-10-19T12:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Previous Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432893#M161313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice &amp;amp; solution .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 12:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432893#M161313</guid>
      <dc:creator />
      <dc:date>2012-10-19T12:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Previous Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432894#M161314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, create a new field MONTHNUM containing month in numeric value with applymap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, use variables to get appropriate month value:&lt;/P&gt;&lt;P&gt;_currentMonth=MONTHNUM&lt;/P&gt;&lt;P&gt;_previousMonth=_currentMonth-1&lt;/P&gt;&lt;P&gt;_previous3Month=currentMonth-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create expressions using thoses variables:&lt;/P&gt;&lt;P&gt;For last month:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MONTHNUM={'$(_previousMonth)'}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For last 3 months:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MONTHNUM={'&amp;gt;=$(_previous3Month)&amp;lt;=$(_currentMonth)'}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 12:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-Previous-Month-Data/m-p/432894#M161314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-19T12:54:30Z</dc:date>
    </item>
  </channel>
</rss>

