<?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: Current Month vs Last Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281421#M861339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(=Month(AddMonths(Max(OrderDate),-1)))},YearField={$(=Year(AddMonths(Max(OrderDate),-1)))}&amp;lt;&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 20:25:05 GMT</pubDate>
    <dc:creator>girirajsinh</dc:creator>
    <dc:date>2017-01-19T20:25:05Z</dc:date>
    <item>
      <title>Current Month vs Last Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281420#M861338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I have the following expression to obtain Last Month based on the selected Month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(=Month(AddMonths(Max(OrderDate),-1)))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when the selected Month = January, it does not change the year.&lt;/P&gt;&lt;P&gt;The correct result should be December of the past year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150126_Capture2.PNG" style="height: 305px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281420#M861338</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month vs Last Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281421#M861339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(=Month(AddMonths(Max(OrderDate),-1)))},YearField={$(=Year(AddMonths(Max(OrderDate),-1)))}&amp;lt;&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281421#M861339</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-19T20:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month vs Last Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281422#M861340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have Master Calendar script in place to deal with dates?&lt;/P&gt;&lt;P&gt;If yes?&lt;/P&gt;&lt;P&gt;Then use &lt;/P&gt;&lt;P&gt;if(InMonth(TempDate, today(),-1), 1, 0) &lt;STRONG&gt;as LastMonthFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Master script&lt;/P&gt;&lt;P&gt;And in front end use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;sum({&amp;lt;LastMonthFlag={1}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281422#M861340</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2017-01-19T20:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month vs Last Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281423#M861341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the numbers accurate and just the column header wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-vs-Last-Month/m-p/1281423#M861341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T20:48:30Z</dc:date>
    </item>
  </channel>
</rss>

