<?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: month difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775581#M1044765</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;You need to take years into account with something like:&lt;/P&gt;&lt;P&gt;=(Year(Column1) * 12 + Month(Column1)) - (Left(Column2, 4)&amp;nbsp; * 12 + Right(Column2, 2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 10:56:45 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-12-04T10:56:45Z</dc:date>
    <item>
      <title>month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775579#M1044763</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 have a table in which I have 2 columns like these :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="168"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" width="66"&gt;01/09/2002&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="102"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/10/2002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/12/2002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/01/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/02/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/03/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/04/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/08/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/09/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/11/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/12/2003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/01/2004&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/03/2004&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/05/2004&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/06/2004&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/08/2004&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/09/2002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="18" style="border-top: none;"&gt;01/12/2002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200209&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to show the difference (in months) between the two, how can I achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 10:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775579#M1044763</guid>
      <dc:creator />
      <dc:date>2014-12-04T10:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775580#M1044764</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;Try This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(Column1)-Month(Date(Date#(Column2,YYYYMM)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 10:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775580#M1044764</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-12-04T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775581#M1044765</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;You need to take years into account with something like:&lt;/P&gt;&lt;P&gt;=(Year(Column1) * 12 + Month(Column1)) - (Left(Column2, 4)&amp;nbsp; * 12 + Right(Column2, 2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 10:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775581#M1044765</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-12-04T10:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775582#M1044766</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;Try this ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date(Date#(Date1,'DD/MM/YYYY'),'MM/YYYY') as NewDate1, &lt;/P&gt;&lt;P&gt;Date(Date#(Date2,'YYYYMM'),'MM/YYYY') as NewDate2, &lt;/P&gt;&lt;P&gt;Date(Date(Date#(Date1,'DD/MM/YYYY'),'MM/YYYY') - Date(Date#(Date2,'YYYYMM')),'MM') as NewDiff;&lt;/P&gt;&lt;P&gt;LOAD * Inline&amp;nbsp; [&lt;/P&gt;&lt;P&gt;Date1,Date2&lt;/P&gt;&lt;P&gt;01/09/2002,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/10/2002,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/12/2002,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/01/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/02/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/03/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/04/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/08/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/09/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/11/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/12/2003,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/01/2004,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/03/2004,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/05/2004,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/06/2004,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/08/2004,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/09/2002,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&lt;/P&gt;&lt;P&gt;01/12/2002,&amp;nbsp;&amp;nbsp;&amp;nbsp; 200209&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 11:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775582#M1044766</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-04T11:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775583#M1044767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had used this expression in the script, it errored out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I display existing columns as dimensions in a pivot table, I can't see them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to add a calculated dimension in a table box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 11:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775583#M1044767</guid>
      <dc:creator />
      <dc:date>2014-12-04T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775584#M1044768</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_144644_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72726_QlikCommunity_Thread_144644_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14176964059664989" jivemacro_uid="_14176964059664989"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date2)-Month(date1)+(Year(date2)-Year(date1))*12 as MonthDiff;&lt;/P&gt;
&lt;P&gt;LOAD MonthName(Date#(date2,'DD/MM/YYYY')) as date2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date#(date1,'YYYYMM')) as date1&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date2, date1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/09/2002, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/10/2002, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/12/2002, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/02/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/03/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/04/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/08/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/09/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/11/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/12/2003, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2004, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/03/2004, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/05/2004, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/06/2004, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/08/2004, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/09/2002, 200209&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/12/2002, 200209&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 12:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775584#M1044768</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-04T12:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: month difference</title>
      <link>https://community.qlik.com/t5/QlikView/month-difference/m-p/775585#M1044769</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;There is another way for the doing the same problem is by &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&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;NewDate1&lt;/SPAN&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: blue;"&gt;Year&lt;/SPAN&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;NewDate2&lt;/SPAN&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: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;YearDiff&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Month&lt;/SPAN&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;NewDate1&lt;/SPAN&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: blue;"&gt;Month&lt;/SPAN&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;NewDate2&lt;/SPAN&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: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MonthDiff&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&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;NewDate1&lt;/SPAN&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: blue;"&gt;Year&lt;/SPAN&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;NewDate2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) * 12 +&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Month&lt;/SPAN&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;NewDate1&lt;/SPAN&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: blue;"&gt;Month&lt;/SPAN&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;NewDate2&lt;/SPAN&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: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;TotalMonDiff&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Date&lt;/SPAN&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: blue;"&gt;Date#&lt;/SPAN&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;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'DD/MM/YYYY'),'MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;NewDate1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Date&lt;/SPAN&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: blue;"&gt;Date#&lt;/SPAN&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;Date2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'YYYYMM'),'MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;NewDate2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&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: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; Date1, Date2&lt;BR /&gt; 01/09/2002, 200209&lt;BR /&gt; 01/10/2002, 200209&lt;BR /&gt; 01/12/2002, 200209&lt;BR /&gt; 01/01/2003, 200209&lt;BR /&gt; 01/02/2003, 200209&lt;BR /&gt; 01/03/2003, 200209&lt;BR /&gt; 01/04/2003, 200209&lt;BR /&gt; 01/08/2003, 200209&lt;BR /&gt; 01/09/2003, 200209&lt;BR /&gt; 01/11/2003, 200209&lt;BR /&gt; 01/12/2003, 200209&lt;BR /&gt; 01/01/2004, 200209&lt;BR /&gt; 01/03/2004, 200209&lt;BR /&gt; 01/05/2004, 200209&lt;BR /&gt; 01/06/2004, 200209&lt;BR /&gt; 01/08/2004, 200209&lt;BR /&gt; 01/09/2002, 200209&lt;BR /&gt; 01/12/2002, 200209&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; And you get table as &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG alt="MonthDiff.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72741_MonthDiff.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Anand&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 13:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-difference/m-p/775585#M1044769</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-04T13:19:56Z</dc:date>
    </item>
  </channel>
</rss>

