<?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: Dates Falling in last 3 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589104#M218454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stu,&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;=MonthStart(AddMonths(Today(),-3)) AND Date&amp;lt;MonthStart(Today()),1,0) as InLast3Months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2014 14:01:11 GMT</pubDate>
    <dc:creator>daveamz</dc:creator>
    <dc:date>2014-03-18T14:01:11Z</dc:date>
    <item>
      <title>Dates Falling in last 3 months</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589103#M218453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me with a bit of script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a line in my calendar script that that will return a 1 if the date loaded falls in the last calendar month. The line is:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;IF(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;InMonthToDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), -1),1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am trying now to write the same script line but this time to return a 1 if the date falls in the last THREE calendar month - not including the current month. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've played around with multiple if but I can't quite crack it - can anyone help? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Stu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 13:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589103#M218453</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2014-03-18T13:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Falling in last 3 months</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589104#M218454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stu,&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;=MonthStart(AddMonths(Today(),-3)) AND Date&amp;lt;MonthStart(Today()),1,0) as InLast3Months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 14:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589104#M218454</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2014-03-18T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Falling in last 3 months</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589105#M218455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's superb David - thanks for your help and the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 14:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Falling-in-last-3-months/m-p/589105#M218455</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2014-03-18T14:04:13Z</dc:date>
    </item>
  </channel>
</rss>

