<?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: problem with a date filter in qlik nprinting in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/2493967#M42290</link>
    <description>&lt;P&gt;Good afternoon Lech,&lt;/P&gt;
&lt;P&gt;i have studied this subject for some hours now (including your publication about 'variables and dimensions in NPrinting') and i still haven't found the solution to my problem.&lt;/P&gt;
&lt;P&gt;I am stuck. Can you help me out, please?&lt;/P&gt;
&lt;P&gt;Now I have a column in QlikSense containing YearWeek: 2024-1 until 2024-47 (text field).&lt;/P&gt;
&lt;P&gt;I would like to filter the data in NPrining for 'last week' (46).&lt;/P&gt;
&lt;P&gt;This is what i came up with: will this work in same way? Or will NPrinting not filter on text combined with formula like this?&lt;/P&gt;
&lt;P&gt;I have also tried using variable vLastweek (=46) in Qliksense, but did not manage to get it working in NPrinting.&lt;/P&gt;
&lt;P&gt;Can you show me the best way to go here, please?&lt;/P&gt;
&lt;P&gt;Would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Johan&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohanL74_0-1732201313417.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174695i5FC6922A39C8BDFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohanL74_0-1732201313417.png" alt="JohanL74_0-1732201313417.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 15:06:58 GMT</pubDate>
    <dc:creator>JohanL74</dc:creator>
    <dc:date>2024-11-21T15:06:58Z</dc:date>
    <item>
      <title>problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797887#M31876</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a numeric field like this for a date: 202101 , 202102, 202103, 202104.&lt;/P&gt;&lt;P&gt;I used this formula that works in qlik view to have the current month:&amp;nbsp;=Max(Date(Date#([YYYYMM (Anno - Mese)], 'YYYYMM'), 'YYYYMM'))&lt;/P&gt;&lt;P&gt;I put this formula in qlik nprinting filter but it doesn't work, why?&lt;/P&gt;&lt;P&gt;How can I do?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797887#M31876</guid>
      <dc:creator>P_qlik</dc:creator>
      <dc:date>2021-04-08T08:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797892#M31877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you selected "Evaluate Value" on the drop down menu?&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-5" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797892#M31877</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2021-04-08T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797893#M31878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp; yes but it doesn't work, I tried with evaluate value and advance research but they don't work&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797893#M31878</guid>
      <dc:creator>P_qlik</dc:creator>
      <dc:date>2021-04-08T08:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797895#M31879</link>
      <description>&lt;P&gt;Hi - there is obvious change of type of data you are doing and value change too...&lt;/P&gt;&lt;P&gt;you are saying that you have numerical field with values like:&amp;nbsp;202101,202102... which i take means that they are actual numbers? aren't they?&lt;/P&gt;&lt;P&gt;so when you you use Date# you are converting it to completely different values being: 44197 (for 202101), 44228 (for 202102)&lt;/P&gt;&lt;P&gt;It is basic understanding what Date# and Date function does to the numbers. This is all documented in help documentation. Please make sure you read examples from that help too...&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/InterpretationFunctions/date_hash.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/InterpretationFunctions/date_hash.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then you may want to read this post about most common pitfals re date filtering in NPrinting to complement the topic&amp;nbsp;&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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this still does not help then next question is how you create your 202101, 202102 in Qlik script to understand what value is hidden behind the symbol value!&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797895#M31879</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-04-08T08:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797902#M31880</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;, that formula works in qlik view and gives me 202104, the original field is a numeric field, so which formula should I use in nprinting filter to have the current month for this field?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797902#M31880</guid>
      <dc:creator>P_qlik</dc:creator>
      <dc:date>2021-04-08T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797909#M31881</link>
      <description>&lt;P&gt;It does not matter what works in QlikView in this case...&lt;/P&gt;&lt;P&gt;QlikView may apply this formula as text search (not a numerical value search), on the other hand NPrinting is looking for numerical value (which i explained in my post I have given you link to in my post above)..&lt;/P&gt;&lt;P&gt;So again - what is the field value if you put it in the table and use expressions like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;text(&lt;SPAN&gt;[YYYYMM (Anno - Mese)]&lt;/SPAN&gt;)&lt;/LI&gt;&lt;LI&gt;floor(&lt;SPAN&gt;[YYYYMM (Anno - Mese)]&lt;/SPAN&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If values are the same for text and floor/number then your formula is simply wrong. At the same time I would say you just overcomplicated it as you could simply use:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if field is numerical:&lt;UL&gt;&lt;LI&gt;=Max([YYYYMM (Anno - Mese)])&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;or if field is text field then&amp;nbsp;&lt;UL&gt;&lt;LI&gt;=Max(num#([YYYYMM (Anno - Mese)]))&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now I will say it again - we MUST know how this field is loaded and understand what datatype it inherits in order to give you 100% accurate answer.&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797909#M31881</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-04-08T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797912#M31882</link>
      <description>&lt;P&gt;To add one more comment regarding syntax. I would also looked at other filters you are applying and depending if Max(your date) needs to return max for intersection (or not?) with other selections you may also use set analysis as an optional parameter:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if field is numerical:&lt;UL&gt;&lt;LI&gt;=Max(&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;[YYYYMM (Anno - Mese)])&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;or if field is text field then&amp;nbsp;&lt;UL&gt;&lt;LI&gt;=Max(&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;num#([YYYYMM (Anno - Mese)]))&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 09:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/1797912#M31882</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-04-08T09:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/2493967#M42290</link>
      <description>&lt;P&gt;Good afternoon Lech,&lt;/P&gt;
&lt;P&gt;i have studied this subject for some hours now (including your publication about 'variables and dimensions in NPrinting') and i still haven't found the solution to my problem.&lt;/P&gt;
&lt;P&gt;I am stuck. Can you help me out, please?&lt;/P&gt;
&lt;P&gt;Now I have a column in QlikSense containing YearWeek: 2024-1 until 2024-47 (text field).&lt;/P&gt;
&lt;P&gt;I would like to filter the data in NPrining for 'last week' (46).&lt;/P&gt;
&lt;P&gt;This is what i came up with: will this work in same way? Or will NPrinting not filter on text combined with formula like this?&lt;/P&gt;
&lt;P&gt;I have also tried using variable vLastweek (=46) in Qliksense, but did not manage to get it working in NPrinting.&lt;/P&gt;
&lt;P&gt;Can you show me the best way to go here, please?&lt;/P&gt;
&lt;P&gt;Would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Johan&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohanL74_0-1732201313417.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174695i5FC6922A39C8BDFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohanL74_0-1732201313417.png" alt="JohanL74_0-1732201313417.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 15:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/2493967#M42290</guid>
      <dc:creator>JohanL74</dc:creator>
      <dc:date>2024-11-21T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a date filter in qlik nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/2494071#M42294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/304774"&gt;@JohanL74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you have on screenshot will not work just because you used " " instead of ' '.&lt;/P&gt;
&lt;P&gt;But lets get it straight:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How do you know that your field is a text field and not dual? Did you verify that and how? It is critical to confirm that in previewing field tags as well as in data load editor.&lt;/LI&gt;
&lt;LI&gt;In your example you are using double quotes like this: "2024-", why? Text string always have to be in single quotes: '2024-' so I am confused as to why would you use "&amp;nbsp; "&lt;/LI&gt;
&lt;LI&gt;Why do you hardcoded 2024? Why Dont you use function like:&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;Replace(WeekName(WeekStart(Today(),-1)),'/','-')&lt;/LI&gt;
&lt;LI&gt;Note that by using "replace" I am already converting that field to text string!!!&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;I would use explicit "Evaluate Value" filter for it, as advanced search can be affected by other filters - that is how advanced search works also directly in QlikView or Qlik Sense (based on current selection state vs full data set)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;cheers.&lt;/P&gt;
&lt;P&gt;If you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 23:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/problem-with-a-date-filter-in-qlik-nprinting/m-p/2494071#M42294</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-11-21T23:30:21Z</dc:date>
    </item>
  </channel>
</rss>

