<?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 Compare current month with next month of last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735743#M1050070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is something I just cannot get to work the way I want it to. The issue is the following:&lt;/P&gt;&lt;P&gt;I want to show a pivot (or straight) table with sales information of the current year and month and I want to compare this with the sales of last year's next month. So basically in three words: compare the current month with the following month of last year.&lt;/P&gt;&lt;P&gt;=&amp;gt; October 2014 vs. November 2013&lt;/P&gt;&lt;P&gt;=&amp;gt; March 2013 vs. April 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guys help me please? The expression to start with is, eg. sum({&amp;lt;date={"March"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;or sum(Sales) if March will have been selected in a list box.&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>Thu, 30 Oct 2014 16:43:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-30T16:43:49Z</dc:date>
    <item>
      <title>Compare current month with next month of last year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735743#M1050070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is something I just cannot get to work the way I want it to. The issue is the following:&lt;/P&gt;&lt;P&gt;I want to show a pivot (or straight) table with sales information of the current year and month and I want to compare this with the sales of last year's next month. So basically in three words: compare the current month with the following month of last year.&lt;/P&gt;&lt;P&gt;=&amp;gt; October 2014 vs. November 2013&lt;/P&gt;&lt;P&gt;=&amp;gt; March 2013 vs. April 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guys help me please? The expression to start with is, eg. sum({&amp;lt;date={"March"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;or sum(Sales) if March will have been selected in a list box.&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>Thu, 30 Oct 2014 16:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735743#M1050070</guid>
      <dc:creator />
      <dc:date>2014-10-30T16:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current month with next month of last year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735744#M1050071</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;Sum(Sales) for selected Month&lt;/P&gt;&lt;P&gt;For following month last year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={'$(=$(year(Date)-1))'},Month={'$(=$(Month(Date)+1))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how is the date format in your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the expression according to the date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 17:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735744#M1050071</guid>
      <dc:creator />
      <dc:date>2014-10-30T17:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current month with next month of last year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735745#M1050072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Since I am 'New to Qlikview', I do have some questions.. It is not completely clear to me what exactly I should put for the "Date". You are using the words Year, Month and Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dimensions, Month (jan, feb, mar, apr, ...), Year (2012, 2013, 2014) and part of the expression "Sales".&lt;/P&gt;&lt;P&gt;What should I use for "date"?&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, 31 Oct 2014 16:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735745#M1050072</guid>
      <dc:creator />
      <dc:date>2014-10-31T16:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current month with next month of last year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735746#M1050073</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;&lt;/P&gt;&lt;P&gt;actually, this solution will not work when for example you select december of a certain year.&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;"&gt;Month={'$(=$(Month(Date)+1))" will return 13 as month, which doesn't exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct way to handle this is to use the funtion "addmonths".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for the question of zzzzipke would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(=year(addmonths(makedate(only(Year),only(Month),'1'),'-11')))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(=month(addmonths(makedate(only(Year),only(Month),'1'),'-11')))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 10:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-current-month-with-next-month-of-last-year/m-p/735746#M1050073</guid>
      <dc:creator />
      <dc:date>2014-11-04T10:32:14Z</dc:date>
    </item>
  </channel>
</rss>

