<?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: Summing the current &amp; previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881172#M1010712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;you don't need the addmonths and the monthend function for you current month&lt;BR /&gt;&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=MonthStart(AddMonths(Max(Date),-1)))&amp;lt;=$(=Max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 22:24:02 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-05-05T22:24:02Z</dc:date>
    <item>
      <title>Summing the current &amp; previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881169#M1010709</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'm currently having a problem with a piece of Set Analysis which I found on this website - I'm looking at performing a sum on the current selected month plus the previous selected month. The expression I'm using is this:&lt;/P&gt;&lt;P&gt;&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;=Sum({&amp;lt;Date={"&amp;gt;=$(=MonthStart(AddMonths(Max(Date),-1)))&amp;lt;=$(=MonthEnd(AddMonths(Max(Date),-0)))"}&amp;gt;}Sales)&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&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;However, it seems to be taking the very minimum month in the whole dataset as the min month (i actually want 'current month -1'), and the selected month as the max (which is what I want).&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&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;I'm probably missing something obvious... could someone take a look and give me a hand?&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&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;Thanks very much!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881169#M1010709</guid>
      <dc:creator />
      <dc:date>2015-05-05T15:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Summing the current &amp; previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881170#M1010710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PREVIOUS MONTH&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=only(Year) - $(=if(only(Month) = 1, 1, 0)))}, Month = {$(=month(addmonths(MonthYear, -1)))}&amp;gt;} LineSalesAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881170#M1010710</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-05-05T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summing the current &amp; previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881171#M1010711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems correct,I just replace my field in your exp and I get&amp;nbsp; (DD/MM/YYYY)&lt;/P&gt;&lt;P&gt;to see the expression as in image, remove the label&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85733_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 22:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881171#M1010711</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-05T22:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Summing the current &amp; previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881172#M1010712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;you don't need the addmonths and the monthend function for you current month&lt;BR /&gt;&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=MonthStart(AddMonths(Max(Date),-1)))&amp;lt;=$(=Max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 22:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881172#M1010712</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-05-05T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Summing the current &amp; previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881173#M1010713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/768356"&gt;Re: Current vs Previous Month expression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 23:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-the-current-previous-month/m-p/881173#M1010713</guid>
      <dc:creator>nico_ilog</dc:creator>
      <dc:date>2015-05-05T23:00:31Z</dc:date>
    </item>
  </channel>
</rss>

