<?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: Months Between dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920076#M12684</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;I have attached QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 06:36:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-12T06:36:07Z</dc:date>
    <item>
      <title>Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920074#M12682</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;i need to calculate number of months between date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from:15/01/2014&lt;/P&gt;&lt;P&gt;to :12/08/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any function to do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;gidon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 05:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920074#M12682</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2015-08-12T05:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920075#M12683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using month() function you get the monthname of any particular date as ( Jan,Feb,Mar .. first 3 characters of month as output) . take a map table with the monthname and monthnumber values and use applymap function to map the month name with month number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solution helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 05:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920075#M12683</guid>
      <dc:creator />
      <dc:date>2015-08-12T05:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920076#M12684</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;I have attached QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 06:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920076#M12684</guid>
      <dc:creator />
      <dc:date>2015-08-12T06:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920077#M12685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extract the month in number format and the year from both dates and convert the date to a YearMonth sequential number so you can operate between them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;difference = &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333330154419px;"&gt;( year(date2) * &lt;STRONG&gt;12&lt;/STRONG&gt; &lt;SPAN style="text-decoration: line-through;"&gt;100&lt;/SPAN&gt; ) + num(month(date2))&amp;nbsp; -&amp;nbsp; &lt;/SPAN&gt; ( year(date1) * &lt;STRONG&gt;12 &lt;/STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;100&lt;/SPAN&gt; ) + num(month(date1))&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Edit: I'm sorry I am switching between many tabs and replied so fast I dind't realize I wrote 100 instead of 12).&lt;/P&gt;&lt;P&gt;Bad habit!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920077#M12685</guid>
      <dc:creator />
      <dc:date>2015-08-12T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920078#M12686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(year('12/08/2015')*12 + month('12/08/2015'))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;(year('15/01/2014')*12 + month('15/01/2014'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920078#M12686</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-12T08:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920079#M12687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Borja,&lt;/P&gt;&lt;P&gt;Efectivamente, multiplicando por 100 el año y sumando el mes obtienes AñoMes, pero al restar si hay mas de un año de diferencia, el resultado es erróneo. Pruebalo y verás.&lt;/P&gt;&lt;P&gt;Para restar de forma directa deberías multiplicar por 12, entonces si que la resta produce el número de meses.&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;P&gt;Enrique Colomer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920079#M12687</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-08-12T08:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920080#M12688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Así es. El problema es que varias veces he usado el método de * 100&amp;nbsp; para usar meses secuenciales para los ejes de un gráfico cuando quieres ver meses de varios años, y funciona perfectamente.&lt;/P&gt;&lt;P&gt;Efectivamente, a la hora de operar entre ellos, ha de ser *12 para que la secuencia de meses sea completa y puedas restar cualquier mes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has estado rápido!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920080#M12688</guid>
      <dc:creator />
      <dc:date>2015-08-12T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920081#M12689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please find the attached QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 10:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920081#M12689</guid>
      <dc:creator />
      <dc:date>2015-08-12T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Months Between dates</title>
      <link>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920082#M12690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌hi did you find the solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 10:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Months-Between-dates/m-p/920082#M12690</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-13T10:49:46Z</dc:date>
    </item>
  </channel>
</rss>

