<?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 Date Range Selection Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-Not-Working/m-p/1706599#M451504</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have buttons set up to filter based on date ranges (All Time, Last Month, and Last Week). The All Time and Last Month filters work correctly, but the Last Week filter is having issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are both my expressions [where &lt;STRONG&gt;vEndDate = Now()&lt;/STRONG&gt;]&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Month:&lt;STRONG&gt;&amp;nbsp;=Date(Addmonths(vEndDate,-1),'M/DD/YYYY hh:mm:ss tt')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Last Week:&amp;nbsp;&lt;STRONG&gt;=Date(vEndDate -7,'M/DD/YYYY hh:mm:ss tt')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a trigger set on vStartDate and vEndDate to Select in Field for my date field, where the search string is:&amp;nbsp; &lt;STRONG&gt;='&amp;gt;='&amp;amp;vStartDate&amp;amp;'&amp;lt;='&amp;amp;vEndDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Last Month, it sets the search string correctly, but if I select Last Week, it sets&amp;nbsp;&lt;STRONG&gt;-&amp;nbsp;&lt;/STRONG&gt;as the date range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also confused because if I change the value I subtract from vEndDate from 7 to an integer greater than 7, the filter seems to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 15:04:27 GMT</pubDate>
    <dc:creator>jfredericks</dc:creator>
    <dc:date>2020-05-29T15:04:27Z</dc:date>
    <item>
      <title>Date Range Selection Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-Not-Working/m-p/1706599#M451504</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have buttons set up to filter based on date ranges (All Time, Last Month, and Last Week). The All Time and Last Month filters work correctly, but the Last Week filter is having issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are both my expressions [where &lt;STRONG&gt;vEndDate = Now()&lt;/STRONG&gt;]&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Month:&lt;STRONG&gt;&amp;nbsp;=Date(Addmonths(vEndDate,-1),'M/DD/YYYY hh:mm:ss tt')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Last Week:&amp;nbsp;&lt;STRONG&gt;=Date(vEndDate -7,'M/DD/YYYY hh:mm:ss tt')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a trigger set on vStartDate and vEndDate to Select in Field for my date field, where the search string is:&amp;nbsp; &lt;STRONG&gt;='&amp;gt;='&amp;amp;vStartDate&amp;amp;'&amp;lt;='&amp;amp;vEndDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Last Month, it sets the search string correctly, but if I select Last Week, it sets&amp;nbsp;&lt;STRONG&gt;-&amp;nbsp;&lt;/STRONG&gt;as the date range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also confused because if I change the value I subtract from vEndDate from 7 to an integer greater than 7, the filter seems to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 15:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-Not-Working/m-p/1706599#M451504</guid>
      <dc:creator>jfredericks</dc:creator>
      <dc:date>2020-05-29T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Selection Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-Not-Working/m-p/1709781#M451674</link>
      <description>&lt;P&gt;Update: no data was available to select in the field. Set expressions to conditional in related charts and changed the expressions disabled error message to "No data available in selected date range"&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 14:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-Not-Working/m-p/1709781#M451674</guid>
      <dc:creator>jfredericks</dc:creator>
      <dc:date>2020-06-10T14:01:05Z</dc:date>
    </item>
  </channel>
</rss>

