<?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: Filtering data based on date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916779#M982079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(OrderDate) as YearOrderDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;[..\Stage1\Orders.qvd]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(qvd) Where Year(OrderDate) &amp;gt;=$(vMinYear) and Year(OrderDate) &amp;lt;=$(vMaxYear);&lt;/STRONG&gt; //Use variables without single quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 09:10:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-10T09:10:55Z</dc:date>
    <item>
      <title>Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916778#M982077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2007-2011 data, where i have to read only latest 3 years data. I have order date field. I am trying with below line, but not working. Can you please give me the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created two variables - vMaxYear&amp;nbsp;&amp;nbsp;&amp;nbsp; =Year(today())-4 (2011)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMinYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Year(today())-6 (2009)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(OrderDate) as YearOrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Stage1\Orders.qvd]&lt;/P&gt;&lt;P&gt;(qvd) Where Year(OrderDate) &amp;gt;=$('vMinYear') and Year(OrderDate) &amp;lt;=$('vMaxYear');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916778#M982077</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-10T09:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916779#M982079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(OrderDate) as YearOrderDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;[..\Stage1\Orders.qvd]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(qvd) Where Year(OrderDate) &amp;gt;=$(vMinYear) and Year(OrderDate) &amp;lt;=$(vMaxYear);&lt;/STRONG&gt; //Use variables without single quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916779#M982079</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-10T09:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916780#M982081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try removing the quotes for the variables. Also create a text box in the front end and please evaluate your variable if they are giving correct result or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916780#M982081</guid>
      <dc:creator />
      <dc:date>2015-08-10T09:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916781#M982082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is showing the error as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;and&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please why so?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916781#M982082</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-10T09:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916782#M982083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked the variables from front end. Still without quotes it is not working Chitra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Showing below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;and&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916782#M982083</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-10T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916783#M982084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have this before your load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET vMaxYear =Year(Today())-4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET vMinYear =Year(Today())-6;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(OrderDate) as YearOrderDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipperID&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[..\Stage1\Orders.qvd]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Where Year(OrderDate) &amp;gt;=$(vMinYear) and Year(OrderDate) &amp;lt;=$(vMaxYear);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916783#M982084</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-10T09:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916784#M982085</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;I have created variables from variable overview, now i have tried doing with your solution and it is working. Is it must? does not it work if we create from variable overview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916784#M982085</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-10T09:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916785#M982086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that once it is created in variable overview, it should work in the script, but I may be wrong as I have never tested it out. To be on a safer side, I have always created the variable in the script whenever I wanted to use it in the script.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916785#M982086</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-10T09:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916786#M982087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916786#M982087</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-10T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916787#M982088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem &lt;A _jive_internal="true" href="https://community.qlik.com/people/Sridhar.Sigireddy"&gt;Sridhar&lt;/A&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad I was able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 09:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916787#M982088</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-10T09:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916788#M982089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please load your app here &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 10:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-data-based-on-date/m-p/916788#M982089</guid>
      <dc:creator />
      <dc:date>2015-08-10T10:42:50Z</dc:date>
    </item>
  </channel>
</rss>

