<?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 Vs Previous month amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423158#M157704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii narender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Month :&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;MonthField = {"$(=Max(MonthField))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Prev Month:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;MonthField = {"$(=Month(floor(AddMonths(Max(MonthField),-1))))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 03 May 2013 06:45:02 GMT</pubDate>
    <dc:creator>nilesh_gangurde</dc:creator>
    <dc:date>2013-05-03T06:45:02Z</dc:date>
    <item>
      <title>Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423156#M157702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to calculate this month and previous month amount.If i select march then it should show&amp;nbsp; mar vs feb amount in straight table and by default when there is no selection it should show only Current month Vs previous month amount .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 06:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423156#M157702</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-05-03T06:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423157#M157703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check with below exp.&lt;/P&gt;&lt;P&gt;for the current month: &lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;(Sum({&amp;lt;[Data Feed Month]={"$(=date(AddMonths([Data Feed Month],0),'MMM YYYY'))"}&amp;gt;} [Charge Rate]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;PrevMonth: &lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;Sum({1&amp;lt;SelDate={"$(=date(AddMonths(SelDate,-1),'MMM YYYY'))"}&amp;gt;} DollarAmount)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #737373; font-size: 10pt;"&gt;Arun M&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 06:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423157#M157703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-03T06:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423158#M157704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii narender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Month :&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;MonthField = {"$(=Max(MonthField))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Prev Month:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;MonthField = {"$(=Month(floor(AddMonths(Max(MonthField),-1))))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 03 May 2013 06:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423158#M157704</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2013-05-03T06:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423159#M157705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(=MonthStart(Max(Date), -2))&amp;lt;=$(=MonthEnd(Max(Date), -1))"},Year=,Month=&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 07:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423159#M157705</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-03T07:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423160#M157706</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;Its not working.&lt;/P&gt;&lt;P&gt;Could you give me the solution with example(qvw). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 07:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423160#M157706</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-05-07T07:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423161#M157707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;Anybody give me the idea??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 11:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423161#M157707</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-05-15T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423162#M157708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;if(InMonthToDate(Date,Today(),0,4),1,0) as CMTD/* date which falls under current month*/,&lt;BR /&gt;if(InMonthToDate(Date,addmonths(Today(),-1),0,4),1,0) as LMTD/* date which falls under Last month*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;the above expressions will give you 1 and 0-whichever falls under 1 comes into that month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;For the current month sales :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;=sum({&amp;lt;CMTD={'1'}&amp;gt;} Amount)/*will give you the current month amount*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;=sum({&amp;lt;LMTD={'1}&amp;gt;} Amount)/* will give you the last month amount*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 12:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423162#M157708</guid>
      <dc:creator />
      <dc:date>2013-05-15T12:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Current Vs Previous month amount</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423163#M157709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;current month&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={$(=Max(Year))},Month = {$(=Maxstring(Month))}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;previous month&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={$(=max(Year))},Month = {$(=Month(floor(AddMonths(Today(),-1))))}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 12:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Vs-Previous-month-amount/m-p/423163#M157709</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-05-15T12:21:43Z</dc:date>
    </item>
  </channel>
</rss>

