<?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: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475061#M41906</link>
    <description>&lt;P&gt;Now i have the field in the date format as below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlikuser09_1-1723035536048.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170329iE622E9D8DE462DB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlikuser09_1-1723035536048.png" alt="Qlikuser09_1-1723035536048.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to filter out the table with the latest 3 days .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 13:00:19 GMT</pubDate>
    <dc:creator>Qlikuser09</dc:creator>
    <dc:date>2024-08-07T13:00:19Z</dc:date>
    <item>
      <title>Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473849#M41884</link>
      <description>&lt;P&gt;is there a way I could sort and get top 10 Dates / latest dates in Qlik Nprinting (HTML and PDF) format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 20:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473849#M41884</guid>
      <dc:creator>Qlikuser09</dc:creator>
      <dc:date>2024-07-30T20:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473853#M41885</link>
      <description>&lt;P&gt;Yes - There is.&lt;/P&gt;
&lt;P&gt;but before I spend time thinking how you would like to present it please invest time to write detailed explanation what you aretrying to achieve. Are you:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Trying to filter whole data set only to top 10 dates? - that would be done via filtering (evaluate value or advanced search)
&lt;UL&gt;
&lt;LI&gt;that also can be done by setting a flag in load script&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Trying to get top 10 dates in table/chart-that can be done via dimension limits or set analysis&lt;/LI&gt;
&lt;LI&gt;Trying to display 10 text boxes with last/max 10 dates - that can be done with formulas or set analysis&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note - that most of the things need to be done in Qlik Sense before even reaching NPrinting. As I always say: 90-95 % NPrinitng development lays in proper Qlik Sense development.&lt;/P&gt;
&lt;P&gt;In any case it is important that you have full knowledge about data type and the way you load dates to your Qlik data model (for example: Date(Floor(yourdate)) as SomeDate ) as that will tell us 2 important informations:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;that dates are loaded as integers with dual type of the value (requires filtering using numerical type)&lt;/LI&gt;
&lt;LI&gt;that dates are integers (dont have decimal points - timestamps) in them which is important for filtering too!!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I wrote quite a few posts about dates and filtering and common mistakes people do when not understanding how filtering works. I suggest you have a good read which will help you to get a concept of how to use filters:&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" rel="noopener"&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" rel="noopener"&gt;https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://nprintingadventures.com/2022/03/19/filters-in-nprinting-how-hard-can-it-be-part-3-evaluate-value/" target="_blank" rel="noopener"&gt;https://nprintingadventures.com/2022/03/19/filters-in-nprinting-how-hard-can-it-be-part-3-evaluate-value/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://nprintingadventures.com/2019/02/25/the-pitfalls-of-nprinting-filters-part-2-search-string-filters/" target="_blank" rel="noopener"&gt;https://nprintingadventures.com/2019/02/25/the-pitfalls-of-nprinting-filters-part-2-search-string-filters/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://nprintingadventures.com/2019/11/15/nprinting-filters-part-4-variables/" target="_blank" rel="noopener"&gt;https://nprintingadventures.com/2019/11/15/nprinting-filters-part-4-variables/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;After reading above and once you tell us what you are trying to achieve we can give more guidence.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 21:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473853#M41885</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-07-30T21:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473978#M41886</link>
      <description>&lt;P&gt;No the Date field is not actually in the date format&amp;nbsp; , and that's the reason i wasn't able to achieve any thing like this in Nprinting&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN&gt;=[Datefield]&amp;lt;=$(=max(DateField))-1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;so i thought may be sorting and having to display the top 10 would do that&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 12:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473978#M41886</guid>
      <dc:creator>Qlikuser09</dc:creator>
      <dc:date>2024-07-31T12:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473988#M41887</link>
      <description>&lt;P&gt;Sitll - not enough information for us to comment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;If your date is not a date - then what is it?&lt;/FONT&gt; How can you sort something if you dont know the field type. You cant tell if it will sort by text or by numeric value. Depending on type you may use&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Max(value, rank) &lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/max.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/max.htm&lt;/A&gt;
&lt;UL&gt;
&lt;LI&gt;if it comes to filtering you can then use:
&lt;UL&gt;
&lt;LI&gt;10 evaluate values:
&lt;UL&gt;
&lt;LI&gt;Max(yourfield,1)&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,2&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,3)&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,...)&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,10)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Or Advanced search based on the same principles&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regardles - there is always a way to get things right and convert your value to dates using Date#() function in load script.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/date_hash.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/date_hash.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am guessing here too much so I let you comment on what we are actually dealing with. At the moment we know that: "you want to get max 10 dates which are not dates...."&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 13:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2473988#M41887</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-07-31T13:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475061#M41906</link>
      <description>&lt;P&gt;Now i have the field in the date format as below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlikuser09_1-1723035536048.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170329iE622E9D8DE462DB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlikuser09_1-1723035536048.png" alt="Qlikuser09_1-1723035536048.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to filter out the table with the latest 3 days .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475061#M41906</guid>
      <dc:creator>Qlikuser09</dc:creator>
      <dc:date>2024-08-07T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475066#M41908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/147046"&gt;@Qlikuser09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Option 1 - Sort by date and use dimension limits top 3 + disable others&lt;/LI&gt;
&lt;LI&gt;Option 2 - Evaluate value filter as mentioned above in my previous post (note that you will need to provide the same data type as the field (numeric, dual date, integer)&lt;/LI&gt;
&lt;LI&gt;Option 3 - Advanced search filter&amp;nbsp;as mentioned above in my previous post&lt;/LI&gt;
&lt;LI&gt;Option 4 - create flag in load script and use that flag in nprinting filter.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My prefered option in such case is usually option 2.&lt;/P&gt;
&lt;P&gt;cheers&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475066#M41908</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-08-07T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475133#M41910</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlikuser09_0-1723059207986.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170341iDABC6179A71BD4C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlikuser09_0-1723059207986.png" alt="Qlikuser09_0-1723059207986.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the above did not give any value in Npriting report , however when i try to fetch the same filter inside qliksense using the formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Datefield = {"&amp;gt;=$(=Timestamp(Now()-6))"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;
&lt;P&gt;) it actually gave me 70 records, is there some thing wrong with my Nprinting formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;='&amp;gt;=' &amp;amp; Timestamp(Now()-6)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 19:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475133#M41910</guid>
      <dc:creator>Qlikuser09</dc:creator>
      <dc:date>2024-08-07T19:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort and top 10 dates/ fields in Nprinting HTMl/Pdf</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475212#M41911</link>
      <description>&lt;P&gt;Hi, I have given you all the links and asked to read them thorughly and carefully as explanation and pitfalls are described there.&lt;/P&gt;
&lt;P&gt;When using "evaluate value" formula needs to return single value of the field which is why I explained that for max 10 dates you would have 1 filter with 10 values:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Max(yourfield,1)&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,2&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,...)&lt;/LI&gt;
&lt;LI&gt;.....&lt;/LI&gt;
&lt;LI&gt;Max(yourfield,10)&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_0-1723096029441.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170360iC67F6E9ACF03E7D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_0-1723096029441.png" alt="Lech_Miszkiewicz_0-1723096029441.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Study all the previously provided links carefully again also here are documentation links on subject:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-8" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You cannot have "&amp;gt;=" or "&amp;lt;=" in Evaluate Value filter as it is designed to only filter one value at the time returned from formula which is why for your max 10 you need to create 1 filter returning individually all 10 values as on my screenshot and becasue evaluate value requires correct data type to be provided (in case of properly create dates it should be numerical)&amp;nbsp; you should be ok just with Max() function.&lt;/P&gt;
&lt;P&gt;"&amp;gt;=" and ",&amp;lt;=" option can be only used with advanced search, but in such case you would need make sure you take into account fact that advanced search filter is a formula working of currentl selection state so other filters may affect results if not handled properly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bits from the links I provided in my previous post:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting/Extract-the-data-for-Current-Month-and-Previous-Month-by/td-p/1888985" target="_blank"&gt;https://community.qlik.com/t5/Qlik-NPrinting/Extract-the-data-for-Current-Month-and-Previous-Month-by/td-p/1888985&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 06:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Sort-and-top-10-dates-fields-in-Nprinting-HTMl-Pdf/m-p/2475212#M41911</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-08-08T06:26:41Z</dc:date>
    </item>
  </channel>
</rss>

