<?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 Rolling Year based on in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561075#M23213</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The best way to approach this is by&amp;nbsp;creating a flag in your Qlik datamodel.&lt;/P&gt;&lt;P&gt;I am not 100% sure what range do you want to do and what do you mean by rolling year. Maybe give us some scenarios....but to give you an idea how it can work i would refer directly to&amp;nbsp; date field:&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;=YearStart(Today()) and Date &amp;lt;MonthStart(Today()),1,0) as flag_Rolling_Current_Year, - this will flag all dates in your model starting from beginning of the year till end of last month&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;=YearStart(Today(),&lt;STRONG&gt;-1&lt;/STRONG&gt;) and Date &amp;lt;MonthStart(Today()),1,0) as flag_Rolling_CurrentNPrevious_Year, - this will flag all dates in your model starting from beginning of the &lt;STRONG&gt;last year t&lt;/STRONG&gt;ill end of last month&lt;/P&gt;&lt;P&gt;then in NPrinitng you would just use 1 filter - flag you would create (so your filter would be like:&amp;nbsp;&lt;STRONG&gt;flag_Rolling_Current_Year= numeric value is: 1&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 05:26:57 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2019-03-26T05:26:57Z</dc:date>
    <item>
      <title>Filter Rolling Year Nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561056#M23210</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Now I'm running on Nprinting project. And I got filter change than before, How set filter for 'rolling year', the scenario is : if today is Mar 2019, Nprinting must generate report from Jan 2018 - Feb 2019. and the scenario will able for next month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently we used 2 filter, there are:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year:&amp;nbsp;=If(Month(Today())&amp;gt;1, Year(Today()), Year(AddYears(Today(), -1)))&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month:&amp;nbsp;=Month(AddMonths(Date(Today()),-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But with these filters, NPrinting generated report only Feb 2019 , not from&amp;nbsp;Jan 2018 - Feb 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea? What should we replace in the previous filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good day,Febri.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 06:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561056#M23210</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-03-26T06:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561068#M23212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, it will generate the reports for Feb-2019.&lt;BR /&gt;because&lt;/P&gt;&lt;P&gt;Year: =If(Month(Today())&amp;gt;1, Year(Today()), Year(AddYears(Today(), -1)))&amp;nbsp; &lt;STRONG&gt;It will Return 2019 Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Month: =Month(AddMonths(Date(Today()),-1))&lt;STRONG&gt; it will return Feb Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you have to change the Condition. in the NPrinting Filter i have no idea how we can change.&lt;/P&gt;&lt;P&gt;but in the report, you can use Set Analysis to achieve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohammed Mukram&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 05:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561068#M23212</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2019-03-26T05:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561075#M23213</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The best way to approach this is by&amp;nbsp;creating a flag in your Qlik datamodel.&lt;/P&gt;&lt;P&gt;I am not 100% sure what range do you want to do and what do you mean by rolling year. Maybe give us some scenarios....but to give you an idea how it can work i would refer directly to&amp;nbsp; date field:&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;=YearStart(Today()) and Date &amp;lt;MonthStart(Today()),1,0) as flag_Rolling_Current_Year, - this will flag all dates in your model starting from beginning of the year till end of last month&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;=YearStart(Today(),&lt;STRONG&gt;-1&lt;/STRONG&gt;) and Date &amp;lt;MonthStart(Today()),1,0) as flag_Rolling_CurrentNPrevious_Year, - this will flag all dates in your model starting from beginning of the &lt;STRONG&gt;last year t&lt;/STRONG&gt;ill end of last month&lt;/P&gt;&lt;P&gt;then in NPrinitng you would just use 1 filter - flag you would create (so your filter would be like:&amp;nbsp;&lt;STRONG&gt;flag_Rolling_Current_Year= numeric value is: 1&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 05:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561075#M23213</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-03-26T05:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561264#M23219</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Advanced filtering is not yet available on Qlik NPrinting (February 2019) so, in my opinion, the best solution is the one suggested by Lech. This solution has also the advantage that formulas in the reload script are calculated one time during data reload and not every time a filter is applied to generate a report. This made report generation faster.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As general rule to create a OR condition (you want to select sales of today OR yesterday OR...) you have to insert multiple lines, one for each value, in the filter field like in the picture below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15 days.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8837i841DBC34FEAB3DCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="15 days.png" alt="15 days.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 11:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1561264#M23219</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2019-03-26T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562179#M23244</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;thanks for the advice. By the way, what's the expected result if we apply the filter like that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 04:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562179#M23244</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-03-28T04:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562180#M23245</link>
      <description>&lt;P&gt;Ruggero just shown you how "Or" condition is applied and it is will not be useful in your scenario.&lt;/P&gt;&lt;P&gt;His example would return Today, Yesterday,2 and 3 days back (4 days all together)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 04:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562180#M23245</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-03-28T04:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562185#M23246</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;i have tried your suggestion on Qlikview doc (both) but when I check the result is 0. Should I check untill I implement to NPrinting?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 04:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562185#M23246</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-03-28T04:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562188#M23247</link>
      <description>&lt;P&gt;Check in QlikView if your formula works directly there, if it does please screenshot your filter in NPrinting and attach here (just like Ruggero did)&lt;/P&gt;&lt;P&gt;Did you use "numerical value is" = 1?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 233px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8991i749B29BA5FBA843A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I mentioned here about traps with datatypes when using NPrinting filters:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nprintingadventures.wordpress.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/" target="_blank"&gt;https://nprintingadventures.wordpress.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 04:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562188#M23247</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-03-28T04:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562195#M23249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably misunderstood your previous post. So if it is not working for you in QlikView script:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;please screenshot your script where you have applied it,&lt;/LI&gt;&lt;LI&gt;please also screenshot table viewer after reload (so we can see data model and existing connections)&lt;/LI&gt;&lt;LI&gt;please hover mouse cursor over the field in data model viewer so we can see what datatype was allocated to your date field.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You need to make sure that your date is actually stored as date (not as a text) to ensure that formula i suggested works for you&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 05:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562195#M23249</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-03-28T05:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562231#M23250</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;might be this can be help&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlikview variables show Full.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9000i7B0D61E3FBD3C571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlikview variables show Full.png" alt="Qlikview variables show Full.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table viewer Date type.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9001i49F2A359015ED35E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table viewer Date type.png" alt="Table viewer Date type.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 07:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562231#M23250</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-03-28T07:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562252#M23251</link>
      <description>You have not created this flag in your calendar. Or at least i cannot see it there. When i said “Flag” i meant additional field in data load editor/script where you would put the expression i gave you to create it</description>
      <pubDate>Thu, 28 Mar 2019 07:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562252#M23251</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-03-28T07:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562293#M23253</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;Can do it without using a "Flag"? What's your opinion then, it will be major change the data. And I don't get what should I make as a "Flag". Is it possible to edit my prev filter ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 08:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562293#M23253</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-03-28T08:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rolling Year based on</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562329#M23257</link>
      <description>It is very minor change to datamodel and will not affect in any way your current application.&lt;BR /&gt;If you have issues understanding how to do it i suggest you ask Qlik Partner or Qlik directly for consultancy day. They will be able to do it in 5 minutes as it is very basic thing to do and it is a very common practice to create flags in calendar for such purpose like yours</description>
      <pubDate>Thu, 28 Mar 2019 09:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Filter-Rolling-Year-Nprinting/m-p/1562329#M23257</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-03-28T09:56:10Z</dc:date>
    </item>
  </channel>
</rss>

