<?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 Filter based on date in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-based-on-date/m-p/1859048#M34103</link>
    <description>&lt;P&gt;Hi Team&lt;/P&gt;
&lt;P&gt;I am building a custom report in Nprinting , in doing so I need the date of the previous day not the last 24 hours how can I achieve this?&lt;/P&gt;
&lt;P&gt;Just to provide more information , I have 3 different field in the report for the date i.e Day takes value from 1-31 depending on the month. second field is Month which take values from 01-12 and Year which is in the format 2019.&lt;/P&gt;
&lt;P&gt;In the filter I&amp;nbsp; need to put a expression in such a way that it would yield me one day before data not last 24 hour data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came across this but dont know what it means . if someone can help me out.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Num(Day(Today(1)-1),'00')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Nov 2021 13:15:29 GMT</pubDate>
    <dc:creator>fernfrancis</dc:creator>
    <dc:date>2021-11-14T13:15:29Z</dc:date>
    <item>
      <title>Filter based on date</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-based-on-date/m-p/1859048#M34103</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;
&lt;P&gt;I am building a custom report in Nprinting , in doing so I need the date of the previous day not the last 24 hours how can I achieve this?&lt;/P&gt;
&lt;P&gt;Just to provide more information , I have 3 different field in the report for the date i.e Day takes value from 1-31 depending on the month. second field is Month which take values from 01-12 and Year which is in the format 2019.&lt;/P&gt;
&lt;P&gt;In the filter I&amp;nbsp; need to put a expression in such a way that it would yield me one day before data not last 24 hour data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came across this but dont know what it means . if someone can help me out.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Num(Day(Today(1)-1),'00')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 13:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-based-on-date/m-p/1859048#M34103</guid>
      <dc:creator>fernfrancis</dc:creator>
      <dc:date>2021-11-14T13:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on date</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-based-on-date/m-p/1859073#M34105</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first of all Qlik Sense does not work with NPrinitng 16.5 as that version only works with QlikView. Make sure you provide us correct versions of NPrinting and Qlik Sense so we can provide you with correct suggestion.&lt;/P&gt;
&lt;P&gt;Regarding date filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having 3 separate fields is not really a good practice as you will need to build 3 field filter for it. Obviously most important thing is to understand datatype of those fields as depending on that filter setup will be different (read about datatypes in links below).&lt;/P&gt;
&lt;P&gt;I am guessing your fields are of a dual type so therefore I would set them up like this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Year: &lt;FONT color="#FF0000"&gt;evaluate value:&lt;/FONT&gt; =Year(Today()-1)&lt;/LI&gt;
&lt;LI&gt;Month: evaluate value: =num(Month(Today()-1))&lt;/LI&gt;
&lt;LI&gt;Day: evaluate value: =num(Day(Today()-1))&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_0-1636929670109.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66610i1B7DC7D8E86116BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_0-1636929670109.png" alt="Lech_Miszkiewicz_0-1636929670109.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously you need to create a filter which filters all 3 fields separately if you dont have one "Date" field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way I would set it up would be by:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;having a "Date" field created in Qlik Sense load script which would use script like below to remove timestamp from it:
&lt;UL&gt;
&lt;LI&gt;Date(Floor("your_date")) as Date&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Then in NPrinting I would have a filter like below:
&lt;UL&gt;
&lt;LI&gt;Date:&amp;nbsp;evaluate value: =Floor(Today()-1)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;More about data types and filters I explain here:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&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;/LI&gt;
&lt;LI&gt;&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;/LI&gt;
&lt;LI&gt;and generally all filters posts on my blog:&amp;nbsp;&lt;A href="https://nprintingadventures.com/category/nprinting/filters/" target="_blank"&gt;https://nprintingadventures.com/category/nprinting/filters/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 14 Nov 2021 22:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-based-on-date/m-p/1859073#M34105</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-11-14T22:41:26Z</dc:date>
    </item>
  </channel>
</rss>

