<?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: Report next 7 days in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Report-next-7-days/m-p/1737021#M29780</link>
    <description>&lt;P&gt;It is hard to give you an answer without knowing how the field you are trying to filter on is created in Qlik Sense script. Do you use some sort Floor() and Date() functions to make sure there no timestamps on date field?&lt;/P&gt;&lt;P&gt;Also week(now())+1 is not really good approach as it will not give you right result. Using now() finction is also not right as it returns timestamp (date and time) which also is not what you need.&lt;/P&gt;&lt;P&gt;Lets just assume that you need to filter based on "MyDate" field which is create in script using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
 Date(Floor(SomeDate)) as MyDate
...&lt;/LI-CODE&gt;&lt;P&gt;now... The fact that we applied Date() mask on numerical value of the date does not mean anything... we still need to apply numerical filter...&lt;/P&gt;&lt;P&gt;to achieve this you would use:&lt;/P&gt;&lt;P&gt;Option 1:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/" target="_blank"&gt;https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;numerical value is: Floor(Today()+1)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+2)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+3)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+4)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+5)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+6)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+7)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Option 2:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/" target="_blank"&gt;https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Advanced Search &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;=([MyDate]&amp;gt;Today())*([Date]&amp;lt;=Today()+7)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thats it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 10:23:52 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2020-08-19T10:23:52Z</dc:date>
    <item>
      <title>Report next 7 days</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Report-next-7-days/m-p/1736982#M29776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have some tables in a report which shall only show the data for the next 7 days.&lt;/P&gt;&lt;P&gt;=week(now())+1&lt;/P&gt;&lt;P&gt;isn't working. I've tried different writings. Put the +1 on different locations. Tried something with days +7... The report always says "Invalid selections"&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 08:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Report-next-7-days/m-p/1736982#M29776</guid>
      <dc:creator>dominik_m_</dc:creator>
      <dc:date>2020-08-19T08:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Report next 7 days</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Report-next-7-days/m-p/1737021#M29780</link>
      <description>&lt;P&gt;It is hard to give you an answer without knowing how the field you are trying to filter on is created in Qlik Sense script. Do you use some sort Floor() and Date() functions to make sure there no timestamps on date field?&lt;/P&gt;&lt;P&gt;Also week(now())+1 is not really good approach as it will not give you right result. Using now() finction is also not right as it returns timestamp (date and time) which also is not what you need.&lt;/P&gt;&lt;P&gt;Lets just assume that you need to filter based on "MyDate" field which is create in script using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
 Date(Floor(SomeDate)) as MyDate
...&lt;/LI-CODE&gt;&lt;P&gt;now... The fact that we applied Date() mask on numerical value of the date does not mean anything... we still need to apply numerical filter...&lt;/P&gt;&lt;P&gt;to achieve this you would use:&lt;/P&gt;&lt;P&gt;Option 1:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/" target="_blank"&gt;https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;numerical value is: Floor(Today()+1)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+2)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+3)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+4)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+5)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+6)&lt;/LI&gt;&lt;LI&gt;numerical value is: Floor(Today()+7)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Option 2:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/" target="_blank"&gt;https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Advanced Search &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;=([MyDate]&amp;gt;Today())*([Date]&amp;lt;=Today()+7)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thats it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 10:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Report-next-7-days/m-p/1737021#M29780</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-08-19T10:23:52Z</dc:date>
    </item>
  </channel>
</rss>

