<?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: Filter on date range... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636712#M233495</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;First create a date field in the script like&amp;nbsp; Makedate(Left(EffectiveDate ,4), Right(EffectiveDate,2),1)&amp;nbsp; as CalDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Try below expression&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;CalDate={'&amp;gt;=$(=Yearstart(Max(CalDate), -4))&amp;lt;=$(=Max(CalDate))'}, CalMonth=,CalQuarter=,CalYear= &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 May 2014 06:51:31 GMT</pubDate>
    <dc:creator>nirav_bhimani</dc:creator>
    <dc:date>2014-05-17T06:51:31Z</dc:date>
    <item>
      <title>Filter on date range...</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636711#M233494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this can be done the way I intend on setting this up, but I have data in a table that includes EffectiveDate (YYYYMM format) and I need to create a date range, using a span of 5 years (BeginDate, EndDate) in order to only filter on EffectiveDate within the range of those 2 dates. The&amp;nbsp; user will select a YearMonth combinations from a List Box or Table Box if need be(ie. 201306), and then calculate 5 years back (Addmonths(&amp;lt;Selected Date&amp;gt;, -60), and for it to filter all EffectiveDate dates in that 5 year span. So, if List Box field name would be BeginDate (let's say 201306) and 5 years back would be calculated as EndDate (or 200806), then it would dynamically filter the data in the table with EffectiveDate between BeginDate and EndDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 23:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636711#M233494</guid>
      <dc:creator />
      <dc:date>2014-05-16T23:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date range...</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636712#M233495</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;First create a date field in the script like&amp;nbsp; Makedate(Left(EffectiveDate ,4), Right(EffectiveDate,2),1)&amp;nbsp; as CalDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Try below expression&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;CalDate={'&amp;gt;=$(=Yearstart(Max(CalDate), -4))&amp;lt;=$(=Max(CalDate))'}, CalMonth=,CalQuarter=,CalYear= &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 06:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636712#M233495</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2014-05-17T06:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date range...</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636713#M233496</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;first convert your datefield&lt;/P&gt;&lt;P&gt;using date function&lt;/P&gt;&lt;P&gt;Date(date#(datefield,'YYYYMM'),'DD-MM-YYYY') as newDateField,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use newDateField in your set analysis&lt;/P&gt;&lt;P&gt;Like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;endDate={"&amp;gt;$(=addYears(newDateField,-5))&amp;lt;=$(=max(newDateField))"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 06:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-on-date-range/m-p/636713#M233496</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-05-17T06:53:50Z</dc:date>
    </item>
  </channel>
</rss>

