<?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: Within Range: Within Next 1 Month or Within 2 Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703014#M725529</link>
    <description>&lt;P&gt;Try implementing &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank" rel="noopener"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 11:22:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-05-18T11:22:09Z</dc:date>
    <item>
      <title>Within Range: Within Next 1 Month or Within 2 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703009#M725528</link>
      <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have dates greater than today for the next 6 months, I need to implement a filter that will show the range for example,&lt;/P&gt;&lt;P&gt;'Within 2 months': this should select all dates within the next two months, somewhat like a date&amp;lt;=add_months(now(),2) ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;My filter should list values as&lt;/P&gt;&lt;P&gt;within 1 month(s)&lt;/P&gt;&lt;P&gt;within 2 month(s)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;within 6 month(s)&lt;/P&gt;&lt;P&gt;Please can you help out here&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703009#M725528</guid>
      <dc:creator>baliyan_vinay</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Within Range: Within Next 1 Month or Within 2 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703014#M725529</link>
      <description>&lt;P&gt;Try implementing &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank" rel="noopener"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 11:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703014#M725529</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-05-18T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Within Range: Within Next 1 Month or Within 2 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703807#M725530</link>
      <description>&lt;P&gt;With As of table I will get the rolling months, for example, if I have selected Mar-2020 for 2020, then I would have data for Jan, Feb and Mar. This is clear to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is for example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;15-Jun-2020&lt;/P&gt;&lt;P&gt;20-Jun-2020&lt;/P&gt;&lt;P&gt;25-Jun-2020&lt;/P&gt;&lt;P&gt;So within 1 months should return me only 15 and 20 and not 25-Jun as this date is greater than curr_Date plus one month.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 11:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703807#M725530</guid>
      <dc:creator>baliyan_vinay</dc:creator>
      <dc:date>2020-05-20T11:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Within Range: Within Next 1 Month or Within 2 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703818#M725531</link>
      <description>&lt;P&gt;Checkout a script like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QuartersMap:
Mapping
LOAD RowNo() as Month,
	 'Q' &amp;amp; Ceil (rowno()/3) as Quarter
AutoGenerate (12);

LET varMinDate = 43831;
LET varMaxDate = 44196;

TempCalendar:
LOAD $(varMinDate) + Iterno()-1 As Num,
	 Date($(varMinDate) + IterNo() - 1) as TempDate
AutoGenerate 1
While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);

MasterCalendar:
LOAD TempDate AS OrderDate,
	 week(TempDate) As Week,
	 Year(TempDate) As Year,
	 Month(TempDate) As Month,
	 Day(TempDate) As Day,
	 YeartoDate(TempDate)*-1 as CurYTDFlag,
	 YeartoDate(TempDate,-1)*-1 as LastYTDFlag,
	 inyear(TempDate, Monthstart($(varMaxDate)),-1) as RC12,
	 date(monthstart(TempDate), 'MMM-YYYY') as MonthYear,
	 ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,
	 Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,
	 WeekDay(TempDate) as WeekDay	 
Resident TempCalendar
Order By TempDate ASC;

FilterTable:
CrossTable (Filter, Flag)
LOAD OrderDate,
	 If(OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 1), 1) as [Within 1 month],
	 If(OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 2), 1) as [Within 2 months],
	 If(OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 3), 1) as [Within 3 months],
	 If(OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 4), 1) as [Within 4 months],
	 If(OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 5), 1) as [Within 5 months],
	 If(OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 6), 1) as [Within 6 months]
Resident MasterCalendar
Where OrderDate &amp;gt;= Today(1) and OrderDate &amp;lt;= AddMonths(Today(1), 6);

DROP Table TempCalendar;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 May 2020 12:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Within-Range-Within-Next-1-Month-or-Within-2-Months/m-p/1703818#M725531</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-05-20T12:15:08Z</dc:date>
    </item>
  </channel>
</rss>

