<?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 not working... in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261796#M14364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values: =floor(closedate)=(today()-1)&lt;/P&gt;&lt;P&gt;Number: -1&lt;/P&gt;&lt;P&gt;IsNumeric: yes&lt;/P&gt;&lt;P&gt;Evaluate: no&lt;/P&gt;&lt;P&gt;Verify filter: yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unit test case&lt;/P&gt;&lt;P&gt;=floordate(closedate)=(Date('2/16/17')-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 17:38:47 GMT</pubDate>
    <dc:creator>markp201</dc:creator>
    <dc:date>2017-03-09T17:38:47Z</dc:date>
    <item>
      <title>filter not working...</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261793#M14361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a datetime field we need to filter for prior day with a static expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;closedate&amp;gt;today()-1 AND closedate&amp;lt;today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 3/9 we need closedate between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3/7/17 12:00 am thru 3/8/17 12:00 am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we run the task, the filter appears to be ignored and end up getting everything.&lt;/P&gt;&lt;P&gt;One technique we're trying is changing the PC time for testing but looks like qlikview ignores the change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261793#M14361</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-03-09T15:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: filter not working...</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261794#M14362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;closedate&amp;gt;&lt;STRONG&gt;Date(today()-1)&lt;/STRONG&gt; AND closedate&amp;lt;&lt;STRONG&gt;Date(today())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Also check the format of the closedate in the database and try formatting the today accordingly.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Today()-1 will return a number instead date format that might be the reason for ignoring the where condition!!!&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261794#M14362</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-03-09T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: filter not working...</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261795#M14363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would exclude the time with the Date function but in reality you actually should not be getting anything because you are saying &lt;/P&gt;&lt;P&gt;closedate&amp;gt;today()-1 AND closedate&amp;lt;today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are on 3/9 then Today() -1 = 8/3 therefore you are saying&lt;/P&gt;&lt;P&gt;closedate&amp;gt;8/3 AND closedate&amp;lt;9/3 which is actually nothing since you need to say&lt;/P&gt;&lt;P&gt;closedate &amp;gt;= 8/3 (greater than and equal to 8/3) and closedate &amp;lt; 9/3 (just less than 9/3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the greater than and equal to that will make the difference plus wrap it in date i.e.&lt;/P&gt;&lt;P&gt;closedate &amp;gt;= Date(today()-1) AND closedate &amp;lt; Date(today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as this comment goes:&lt;/P&gt;&lt;P&gt;For 3/9 we need closedate between&amp;nbsp; &lt;/P&gt;&lt;P&gt;3/7/17 12:00 am thru 3/8/17 12:00 am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading it as you need everything for 7/3 since it starts as 12:00 am and runs until 12:59:59 pm&lt;/P&gt;&lt;P&gt;i.e. less than 8/3 12:00 am&lt;/P&gt;&lt;P&gt;If you are on the 9/3 then if you wanted 7/3 then it is Date(Today() -2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Nicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261795#M14363</guid>
      <dc:creator>njmaehler</dc:creator>
      <dc:date>2017-03-09T16:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: filter not working...</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261796#M14364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values: =floor(closedate)=(today()-1)&lt;/P&gt;&lt;P&gt;Number: -1&lt;/P&gt;&lt;P&gt;IsNumeric: yes&lt;/P&gt;&lt;P&gt;Evaluate: no&lt;/P&gt;&lt;P&gt;Verify filter: yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unit test case&lt;/P&gt;&lt;P&gt;=floordate(closedate)=(Date('2/16/17')-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/filter-not-working/m-p/1261796#M14364</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-03-09T17:38:47Z</dc:date>
    </item>
  </channel>
</rss>

