<?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: Previous Month Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837577#M530528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your set expression is modifying Date field, you need to clear also possible user selections in other&amp;nbsp; calendar fields, to avoid incompatible field selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Last Month: ' &amp;amp; Count(DISTINCT {&amp;lt;Date={'&amp;gt;=$(=MonthStart(AddMonths(Max(Date), -1)))&amp;lt;=$(=Date(AddMonths(Max(Date), -1)))'},&lt;STRONG&gt; Month, NumMonth, Year&lt;/STRONG&gt;&amp;gt;}&amp;nbsp; [Sam Ref Id])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Jun 2015 17:40:47 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-28T17:40:47Z</dc:date>
    <item>
      <title>Previous Month Value</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837576#M530527</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;In the attached example , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there are no filters applied , Am able to see the Current month and Previous month record.&lt;/P&gt;&lt;P&gt;But if i select any month , only the current month value is displayed, the previous month is zero.&lt;/P&gt;&lt;P&gt;I want to find the previous month also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Values are in Text Object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2015 16:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837576#M530527</guid>
      <dc:creator />
      <dc:date>2015-06-28T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month Value</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837577#M530528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your set expression is modifying Date field, you need to clear also possible user selections in other&amp;nbsp; calendar fields, to avoid incompatible field selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Last Month: ' &amp;amp; Count(DISTINCT {&amp;lt;Date={'&amp;gt;=$(=MonthStart(AddMonths(Max(Date), -1)))&amp;lt;=$(=Date(AddMonths(Max(Date), -1)))'},&lt;STRONG&gt; Month, NumMonth, Year&lt;/STRONG&gt;&amp;gt;}&amp;nbsp; [Sam Ref Id])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2015 17:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837577#M530528</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-28T17:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month Value</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837578#M530529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this expression for last month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='Last Month: ' &amp;amp; Count(DISTINCT {&amp;lt;Date={'&amp;gt;=$(=MonthStart(AddMonths(Max(Date), -1)))&amp;lt;=$(=&lt;SPAN style="color: #ff0000;"&gt;MonthEnd&lt;/SPAN&gt;(AddMonths(Max(Date), -1)))'}, &lt;SPAN style="color: #ff0000;"&gt;NumMonth = , Month = , Year =&lt;/SPAN&gt; &amp;gt;}&amp;nbsp; [Sam Ref Id])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the red part, if don't use MonthEnd, you will not cover the whole month. For example if your max(date) is 24/04/2015 you will get previous month's value for 01/03/2015 - 24/03/2015. and my guess is that you would like to know the count from 01/03/2015 - 31/03/2015?? If my guess is wrong then &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ solution is the one you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2015 20:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Value/m-p/837578#M530529</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-28T20:57:45Z</dc:date>
    </item>
  </channel>
</rss>

