<?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 InMonthToDate() &amp; Leap Year problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/InMonthToDate-Leap-Year-problem/m-p/446910#M166729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone faced an issue with the InMonthToDate() function when comparing with a date a year ago when the prior year was a leap year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially what seems to be happening is that 2/29 of every year after the leap year gets skipped. here's my flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(InMonthToDate(MasterCalendarDate, AsOfDate, -12),1,null()) as FlagLastYrCurrMTD,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(InMonth(MasterCalendarDate, AsOfDate, -12),1,null()) as FlagLastYrCurrMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am building an AsOfDate table that references other dates in reference to a date selected. So if the AsOf Month = February 2013, 02/29/2012 would be considered InMonthToDate as the entire month has passed, so both flags would be 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2013 19:12:50 GMT</pubDate>
    <dc:creator>avastani</dc:creator>
    <dc:date>2013-03-15T19:12:50Z</dc:date>
    <item>
      <title>InMonthToDate() &amp; Leap Year problem</title>
      <link>https://community.qlik.com/t5/QlikView/InMonthToDate-Leap-Year-problem/m-p/446910#M166729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone faced an issue with the InMonthToDate() function when comparing with a date a year ago when the prior year was a leap year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially what seems to be happening is that 2/29 of every year after the leap year gets skipped. here's my flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(InMonthToDate(MasterCalendarDate, AsOfDate, -12),1,null()) as FlagLastYrCurrMTD,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(InMonth(MasterCalendarDate, AsOfDate, -12),1,null()) as FlagLastYrCurrMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am building an AsOfDate table that references other dates in reference to a date selected. So if the AsOf Month = February 2013, 02/29/2012 would be considered InMonthToDate as the entire month has passed, so both flags would be 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 19:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InMonthToDate-Leap-Year-problem/m-p/446910#M166729</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2013-03-15T19:12:50Z</dc:date>
    </item>
  </channel>
</rss>

