<?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: NPrinting not appling YYYY-MM Filter in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699549#M28846</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried without equal sign ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 17:06:46 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2020-05-06T17:06:46Z</dc:date>
    <item>
      <title>NPrinting not appling YYYY-MM Filter</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699537#M28844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having an issue with NPrinting appling filter.&lt;/P&gt;&lt;P&gt;Once a week an excel report sent by nprinting. New request is to send the last month report on the new month until the 7 of the current month&lt;/P&gt;&lt;P&gt;for example, on May 5th I still need to send the last month report.&lt;/P&gt;&lt;P&gt;So I added the new filter with the correct name field (shown on the screenshot) and try to apply the filter:&lt;/P&gt;&lt;P&gt;=if(day(today())&amp;lt;7,date(ADDMONTHS(today(),-1),'YYYY-MM'),date(today(),'YYYY-MM'))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Last Month filter not appling.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33063i233D3C7013079C1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Last Month filter not appling.PNG" alt="Last Month filter not appling.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;from some reason its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I change it to the next screenshot it will work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Last Month filter appling.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33064i8B45D4598B917972/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Last Month filter appling.PNG" alt="Last Month filter appling.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why is this happening?&lt;/P&gt;&lt;P&gt;I read in here:&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;but still with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me with it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 16:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699537#M28844</guid>
      <dc:creator>idodel</dc:creator>
      <dc:date>2020-05-06T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting not appling YYYY-MM Filter</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699549#M28846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried without equal sign ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 17:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699549#M28846</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2020-05-06T17:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting not appling YYYY-MM Filter</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699621#M28850</link>
      <description>&lt;P&gt;Please make sure that you understand what each of the functions you are using in your formula is doing and how field used in filter was created in load script .&lt;/P&gt;&lt;P&gt;Start with understanding how your &lt;SPAN&gt;YYYY-MM field is created in Qlik and to give you correct answer and be 100% sure that it will work we need to see Qlik script creating this field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it can be something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Date(MonthStart(SomeDate),'YYYY-MM') as someYYYYMMfield&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it is a date (just like shown above) it holds under this mask actual value of the monthstart which is a timestamp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Read those articles about pitfalls of NPrinting filters again. I explained them with examples:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/" target="_blank" rel="noopener"&gt;https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note, that the most important thing is to:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;configure your source field properly&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;understand its data type and consequences of using MonthStart, MonthEnd,WeekEnd,WeekStarte etc... functions&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Understand each of the filters options Value is, Numerical Value is, Evaluate, Advanced Search etc...&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you come back to us with answer how your field is created we may be able to help you more...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 06:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699621#M28850</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-05-07T06:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting not appling YYYY-MM Filter</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699671#M28851</link>
      <description>&lt;P&gt;also - judging by the fact that filter is working when you put it as a "Value is:" I am assuming your field type is Text (ASCII).&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would require your formula to look like:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;=text(date(if(day(today())&amp;lt;7,ADDMONTHS(today(),-1),today()),'YYYY-MM'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 06:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699671#M28851</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-05-07T06:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting not appling YYYY-MM Filter</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699692#M28853</link>
      <description>&lt;P&gt;Thank you, it applied good when wrapping it in a text() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 07:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699692#M28853</guid>
      <dc:creator>idodel</dc:creator>
      <dc:date>2020-05-07T07:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting not appling YYYY-MM Filter</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699704#M28854</link>
      <description>&lt;P&gt;It means that your field you tried to filter is not a proper date field but text field&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 07:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-not-appling-YYYY-MM-Filter/m-p/1699704#M28854</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-05-07T07:56:57Z</dc:date>
    </item>
  </channel>
</rss>

