<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558711#M208534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the calculations above and got Current Month Information for both columns.&amp;nbsp; Is there something else I need to do in order for it to calculate properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 20:15:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-09T20:15:57Z</dc:date>
    <item>
      <title>Current vs. Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558709#M208532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate Previous month invoice amount compared to current month invoice amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SUM(INVC_ITEM_AMT) to get my current month invoice charges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get my Previous month invoice charges?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 18:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558709#M208532</guid>
      <dc:creator />
      <dc:date>2013-07-09T18:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558710#M208533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;For Current Month Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;CalendarYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'Times New Roman','serif';"&gt;$(=max(CalendarYear))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;CalendarMonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'Times New Roman','serif';"&gt;$(=Month(Max(&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'Times New Roman','serif';"&gt;InvDate&lt;/EM&gt;&lt;/STRONG&gt;)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;}&amp;gt;} &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;INVC_ITEM_AMT&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;For Last Month Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;CalendarYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'Times New Roman','serif';"&gt;$(=max(CalendarYear))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;CalendarMonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'Times New Roman','serif';"&gt;$(=month(addmonths((max(InvDate)),-1)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;INVC_ITEM_AMT&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 19:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558710#M208533</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-07-09T19:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558711#M208534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the calculations above and got Current Month Information for both columns.&amp;nbsp; Is there something else I need to do in order for it to calculate properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 20:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558711#M208534</guid>
      <dc:creator />
      <dc:date>2013-07-09T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558712#M208535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to create a new field (bold) for easy control in set analysis, something like&lt;/P&gt;&lt;P&gt;[Table]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[InvoiceDate],&lt;/P&gt;&lt;P&gt;[INVC_ITEM_AMT],&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year([InvoiceDate])*12 + Month([InvoiceDate]) AS [%YM_Seq],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in expression, we can try&lt;/P&gt;&lt;P&gt;For current month invoice amount&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[%YM_Seq] = {$(=Max([%YM_Seq]))}&amp;gt;} [INVC_ITEM_AMT])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For previous month invoice amount&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[%YM_Seq] = {$(=Max([%YM_Seq])-1)}&amp;gt;} [INVC_ITEM_AMT])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For last three month invoice amount&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[%YM_Seq] = {$(=Max([%YM_Seq])-3)}&amp;gt;} [INVC_ITEM_AMT])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 04:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558712#M208535</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-07-10T04:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558713#M208536</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.&lt;/P&gt;&lt;P&gt;for Current Month&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=SUM({&amp;lt;Year={$(=Max(Year))},Month&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;={$(=MaxString(Month))}&lt;/SPAN&gt;&amp;gt;}INVC_ITEM_AMT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=SUM({&amp;lt;Year={$(=Max(Year))},Month&lt;/SPAN&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;={$(=MonthString(Today()))}&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;gt;}INVC_ITEM_AMT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Previous Month&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=SUM({&amp;lt;Year={$(=Max(Year))},Month&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;={$(=Max(Month)-1)}&lt;/SPAN&gt;&amp;gt;}INVC_ITEM_AMT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=SUM({&amp;lt;Year={$(=Max(Year))},Month&lt;/SPAN&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;={$(=num(month(Today())-1))}&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;gt;}INVC_ITEM_AMT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 05:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month/m-p/558713#M208536</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-10T05:18:14Z</dc:date>
    </item>
  </channel>
</rss>

