<?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: Re: Comparing Current Month and Previous Month Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590849#M1112000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Yes, the case is that all dates are actually the first of the month. This is because there are actually no date field in the data and we need to create a dummy date for qlikview to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached file and data for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i am running in a tight timeline on this, was desperately looking for a solution. Tried so many other solutions, there are still hiccups somehow along the way. Would be grateful if you could provide a direct solution to this. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Mar 2014 17:10:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-02T17:10:27Z</dc:date>
    <item>
      <title>Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590815#M1111966</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 wanted to compare the total sales amount of the current month to the total sales amount of the previous month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the below expression, but the previous month script does not seems to work. It will still display as the current month figure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='MM/DD/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Sales&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(Left(FileBaseName(), 10), 'MM/DD/YYYY')) As FileDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Month Expression:&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;FileDate = {"&amp;gt;=$(=MonthStart(Today()))&amp;lt;= $(=MonthEnd(Today()))"}&amp;gt;}&lt;SPAN style="color: #0000ff;"&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Month Expression:&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;FileDate = {"&amp;gt;=$(=MonthStart(AddMonths(Today(),-1)))&amp;lt;= $(=MonthEnd(AddMonths(Today(),-1)))"}&amp;gt;}&lt;SPAN style="color: #0000ff;"&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Appreciate your time and help in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 02:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590815#M1111966</guid>
      <dc:creator />
      <dc:date>2014-03-02T02:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590816#M1111967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The above expressions are correct. just check the format of date Field. Ideally it should be in Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Sales&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(Left(FileBaseName(), 10), 'MM/DD/YYYY')) As FileDate1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Date(Date#(Left(FileBaseName(), 10), 'MM/DD/YYYY'))) As FileDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Month Expression:&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;FileDate1 = {"&amp;gt;=$(=MonthStart(Today()))&amp;lt;= $(=MonthEnd(Today()))"}&amp;gt;}&lt;SPAN style="color: #0000ff;"&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Month Expression:&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;FileDate1 = {"&amp;gt;=$(=num(floor(MonthStart(AddMonths(Today(),-1)))))&amp;lt;= $(=num(floor(MonthEnd(AddMonths(Today(),-1)))))"}&amp;gt;}&lt;SPAN style="color: #0000ff;"&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 05:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590816#M1111967</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-03-02T05:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590817#M1111968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can apply this in ur application &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>Sun, 02 Mar 2014 06:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590817#M1111968</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-03-02T06:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590818#M1111969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date format is in number but it still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks for helping out, really appreciate it. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 10:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590818#M1111969</guid>
      <dc:creator />
      <dc:date>2014-03-02T10:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590819#M1111970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for taking your time to create a dummy file. It is very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 10:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590819#M1111970</guid>
      <dc:creator />
      <dc:date>2014-03-02T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590820#M1111971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to display the months from Jan-Dec, without Duplicate. How should I go about doing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, it will display as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" height="243" src="https://community.qlik.com/legacyfs/online/54090_Capture.PNG.png" width="145" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached a working file and data file for your reference:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 11:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590820#M1111971</guid>
      <dc:creator />
      <dc:date>2014-03-02T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590821#M1111972</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;You can separate your month field from your date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use Month(yourdatefield) as Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 14:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590821#M1111972</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-02T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590822#M1111973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attached file &lt;/P&gt;&lt;P&gt;I THING Requirement chart is what you looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Sun, 02 Mar 2014 14:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590822#M1111973</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-03-02T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590823#M1111974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you show an example using my working file attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 14:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590823#M1111974</guid>
      <dc:creator />
      <dc:date>2014-03-02T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590824#M1111975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, i wasn't looking for a requirement chart. In fact i need to create a dashboard, so the Month field ideally should not be an extensive list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this as well, it display the months field properly but there are 2 issues:&lt;/P&gt;&lt;P&gt;1. I need to display the month number in a text month format, but when i tried to change it to the month format, data does not display properly.&lt;/P&gt;&lt;P&gt;2. The data for previous month of Jan i.e. Dec does not appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you have a solution to the one above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 14:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590824#M1111975</guid>
      <dc:creator />
      <dc:date>2014-03-02T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590825#M1111976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not take &lt;/P&gt;&lt;P&gt;Month(Date) as Month in script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or take inline &lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;Month,MonthName&lt;/P&gt;&lt;P&gt;1,Jan&lt;/P&gt;&lt;P&gt;2,Feb&lt;/P&gt;&lt;P&gt;3,Mar&lt;/P&gt;&lt;P&gt;4,Apr&lt;/P&gt;&lt;P&gt;5,May&lt;/P&gt;&lt;P&gt;6,Jun&lt;/P&gt;&lt;P&gt;7,Jul&lt;/P&gt;&lt;P&gt;8,Aug&lt;/P&gt;&lt;P&gt;9,Sep&lt;/P&gt;&lt;P&gt;10,Oct&lt;/P&gt;&lt;P&gt;11,Nov&lt;/P&gt;&lt;P&gt;12,Dec&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use MonthName&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>Sun, 02 Mar 2014 15:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590825#M1111976</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-03-02T15:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590826#M1111977</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 using Qlikview 10 Personal edition .&lt;/P&gt;&lt;P&gt;If possible can you post your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590826#M1111977</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-02T15:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590827#M1111978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using month(date) as month, but it doesnt seems to load properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt; month(Date) as Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expenses,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Act_Amt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inline script looks good. But i tried using your script but it does not work. i'm having this error (snapshot attached).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590827#M1111978</guid>
      <dc:creator />
      <dc:date>2014-03-02T15:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590828#M1111979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='D/M/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='D/M/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expenses, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Act_Amt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet3$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Month Expression: sum({&amp;lt;Month={"$(=(Month))"},Year={"$(=(Year))"}&amp;gt;}Act_Amt)&lt;/P&gt;&lt;P&gt;Previous Month Expression: sum({&amp;lt;Month={"$(=(Month)-1)"},Year={"$(=(Year))"}&amp;gt;}Act_Amt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far this method works best for me but only having 2 issues:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1. I need to display the month number in a text month format, but when i tried to change it to the month format, data does not display properly.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. The data for previous month of Jan i.e. Dec does not appear.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Would you be able to help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590828#M1111979</guid>
      <dc:creator />
      <dc:date>2014-03-02T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590829#M1111980</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;In your png you are missing ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590829#M1111980</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-02T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590830#M1111981</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;do&lt;/P&gt;&lt;P&gt;Month(Date) as MonthName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590830#M1111981</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-02T15:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590831#M1111982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did input ; at the end but the error msg did not show. Even with the ; the script still doesnt work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590831#M1111982</guid>
      <dc:creator />
      <dc:date>2014-03-02T15:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590832#M1111983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this to create &lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;statement through &lt;/P&gt;&lt;P&gt;Insert-&amp;gt;Load Statement-&amp;gt;Load Inline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check there is any syntax error before inline load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590832#M1111983</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-02T15:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590833#M1111984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I applied the script but the previous month script does not work now...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've edited the previous month expression to:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MonthName={"$(=(MonthName)-1)"},Year={"$(=(Year))"}&amp;gt;}Act_Amt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590833#M1111984</guid>
      <dc:creator />
      <dc:date>2014-03-02T15:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Current Month and Previous Month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590834#M1111985</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;try this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthName={"$(=Month(Max(Date)-1)),Year={"$(=(Year))"}&amp;gt;}Act_Amt)"}&amp;gt;})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Current-Month-and-Previous-Month-Sales/m-p/590834#M1111985</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-02T15:39:19Z</dc:date>
    </item>
  </channel>
</rss>

