<?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 Doubts in AddMonths function. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167036#M38761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;With the 0 in the Mode, you get it adding 1 month to 29th January - it will come up with 29th February which, unless it is a leap year, is not a valid date so it gives you the last valid date of that month.&lt;/P&gt;&lt;P&gt;With 1 in the month it works out that the 29th January is the 3rd last day of January - the 3rd last day of February is the 26th.&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;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 16:48:06 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2009-08-26T16:48:06Z</dc:date>
    <item>
      <title>Doubts in AddMonths function.</title>
      <link>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167035#M38760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt; I read the AddMonths functions in the help file. I could not understand the use of [Mode] parameter. What is the use of this Parameter?&lt;BR /&gt;&lt;BR /&gt;I had gone through the examples given in the help file, but i can't understand perfectly.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;addmonths ('2003-01-29',1,1) returns '2003-02-26'&lt;BR /&gt;addmonths ('2003-01-29',1,0) returns '2003-02-28'&lt;/P&gt;&lt;P&gt;Look at the above examples, by adding mode the result has changed. How?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 16:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167035#M38760</guid>
      <dc:creator />
      <dc:date>2009-08-26T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Doubts in AddMonths function.</title>
      <link>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167036#M38761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;With the 0 in the Mode, you get it adding 1 month to 29th January - it will come up with 29th February which, unless it is a leap year, is not a valid date so it gives you the last valid date of that month.&lt;/P&gt;&lt;P&gt;With 1 in the month it works out that the 29th January is the 3rd last day of January - the 3rd last day of February is the 26th.&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;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 16:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167036#M38761</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-08-26T16:48:06Z</dc:date>
    </item>
    <item>
      <title>Doubts in AddMonths function.</title>
      <link>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167037#M38762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stephen,&lt;/P&gt;&lt;P&gt;I got it..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 16:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167037#M38762</guid>
      <dc:creator />
      <dc:date>2009-08-26T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Doubts in AddMonths function.</title>
      <link>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167038#M38763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could Please give me bit more explanation on this what is "mode" can do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 05:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167038#M38763</guid>
      <dc:creator>siva_boggarapu</dc:creator>
      <dc:date>2011-06-10T05:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts in AddMonths function.</title>
      <link>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167039#M38764</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;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my expression using Mode my problem is solved &lt;/P&gt;&lt;P&gt;I used following expression and use 1 mode for hadling leap year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;addmonths(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]),-12,&lt;STRONG&gt;1&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/325264#325264"&gt;http://community.qlik.com/message/325264#325264&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply whether this is correct way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 10:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubts-in-AddMonths-function/m-p/167039#M38764</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-03-22T10:28:14Z</dc:date>
    </item>
  </channel>
</rss>

