<?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 Month on Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-on-Month/m-p/499624#M186694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to make a month on month comparison(i.e Mar 2012 - Feb 2012, Jan 2012 - Dec 2011 data on pivot table, this is the code on my dimension to extrapolate the value on the current month, therefore Month_Year have to be on the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF ( Date &amp;gt; AddMonths (&amp;nbsp; ( var_EndDate ) , (-var_PeriodInYears * 12) ) , &lt;/P&gt;&lt;P&gt;if( MonthEnd(Date) &amp;lt;&amp;gt; var_EndDate &lt;/P&gt;&lt;P&gt;AND MonthEnd(Date) = MonthEnd(var_EndDate) &lt;/P&gt;&lt;P&gt;, '*' &amp;amp; Month_Year, Month_Year) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code for my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( MonthEnd ( MAX( Date ) ) &amp;lt;&amp;gt; var_EndDate AND MonthEnd( MAX ( Date ) ) &lt;BR /&gt;= MonthEnd( var_EndDate ) , &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(&lt;/P&gt;&lt;P&gt; (&lt;BR /&gt;&amp;nbsp; sum({$&amp;lt;Year = {$(v_ThisYear)}, Loading = {'ID*'}&amp;gt;} TEU) &lt;BR /&gt;&amp;nbsp; -&lt;BR /&gt;&amp;nbsp; sum({$&amp;lt;Year = {$(v_ThisYear)},Loading = {'ID*'}&amp;gt;} TEU)&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/ Day( var_EndDate )) * Day(MonthEnd(MAX ( Date )) * 100&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;((sum({$&amp;lt;Year = {$(v_ThisYear)},Loading = {'ID*'}&amp;gt;} TEU) &lt;BR /&gt;-&lt;BR /&gt;sum({$&amp;lt;Year = {$(v_ThisYear)},Loading = {'ID*'}&amp;gt;} TEU)))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of using this code to make MOM comparison but it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddMonths(Date,-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any code that works something like this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2013 00:54:56 GMT</pubDate>
    <dc:creator>n1ef5ng1</dc:creator>
    <dc:date>2013-06-24T00:54:56Z</dc:date>
    <item>
      <title>Month on Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month-on-Month/m-p/499624#M186694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to make a month on month comparison(i.e Mar 2012 - Feb 2012, Jan 2012 - Dec 2011 data on pivot table, this is the code on my dimension to extrapolate the value on the current month, therefore Month_Year have to be on the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF ( Date &amp;gt; AddMonths (&amp;nbsp; ( var_EndDate ) , (-var_PeriodInYears * 12) ) , &lt;/P&gt;&lt;P&gt;if( MonthEnd(Date) &amp;lt;&amp;gt; var_EndDate &lt;/P&gt;&lt;P&gt;AND MonthEnd(Date) = MonthEnd(var_EndDate) &lt;/P&gt;&lt;P&gt;, '*' &amp;amp; Month_Year, Month_Year) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code for my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( MonthEnd ( MAX( Date ) ) &amp;lt;&amp;gt; var_EndDate AND MonthEnd( MAX ( Date ) ) &lt;BR /&gt;= MonthEnd( var_EndDate ) , &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(&lt;/P&gt;&lt;P&gt; (&lt;BR /&gt;&amp;nbsp; sum({$&amp;lt;Year = {$(v_ThisYear)}, Loading = {'ID*'}&amp;gt;} TEU) &lt;BR /&gt;&amp;nbsp; -&lt;BR /&gt;&amp;nbsp; sum({$&amp;lt;Year = {$(v_ThisYear)},Loading = {'ID*'}&amp;gt;} TEU)&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/ Day( var_EndDate )) * Day(MonthEnd(MAX ( Date )) * 100&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;((sum({$&amp;lt;Year = {$(v_ThisYear)},Loading = {'ID*'}&amp;gt;} TEU) &lt;BR /&gt;-&lt;BR /&gt;sum({$&amp;lt;Year = {$(v_ThisYear)},Loading = {'ID*'}&amp;gt;} TEU)))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of using this code to make MOM comparison but it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddMonths(Date,-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any code that works something like this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 00:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-on-Month/m-p/499624#M186694</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-06-24T00:54:56Z</dc:date>
    </item>
  </channel>
</rss>

