<?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>article Examples of Advanced Search Filters in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/ta-p/1594779</link>
    <description>&lt;P&gt;From NPrinting June 2019&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Introduction of a new filter type called &lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm" target="_self"&gt;&lt;EM&gt;&lt;STRONG&gt;Advanced search&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt;. Here are a few examples of how it can be used.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;I have made a few changes to a copy of the sample Qlik Sense App found &lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/Examples/Examples.htm" target="_self"&gt;here&lt;/A&gt; and used that as the Connection source for these examples. The modified App and exported report are attached to this post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Fields that exist in the source document that we use:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2" color="#333399"&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Date&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;Customer&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Variables that exist in the source document that we use:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2" color="#333399"&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;vStartDate&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;vEndDate&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Example 1.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Filtering for a date range.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;With Advanced search filters you can filter for a date range in any of these ways:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;hard coding the &lt;EM&gt;From&lt;/EM&gt; and &lt;EM&gt;To&lt;/EM&gt; dates. Example: &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=Date &amp;lt;= Date#('06/22/2019', 'MM/DD/YYYY') and Date&amp;gt;=Date#('06/22/2018', 'MM/DD/YYYY')&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Using expressions. Example: &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=Date &amp;lt;= num(Today(1)) and Date &amp;gt;=num(Today() - 365)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Using variables that exist in the source document. Example:&amp;nbsp; &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=Date&amp;gt;=$(vStartDate) and Date&amp;lt;=$(vEndDate)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG1.png" style="width: 536px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14209iB0AFD49825185FE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG1.png" alt="FIG1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; &lt;/EM&gt;The above filters were defined on the&amp;nbsp;&lt;FONT size="2" color="#333399"&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Date&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;field. You can also define the same filters for other fields just as you can use expression search in the source document&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Selections/SelectionsToolbar/search-selections.htm" target="_self"&gt;if you want to search for values in associated fields&lt;/A&gt;. For example you could use the exact same filter definition for the&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#333399"&gt;Customer&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;field to get different results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG2.png" style="width: 465px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14210i90CA5D0D3EC1A024/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG2.png" alt="FIG2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Screenshots of the Filter editor showing the difference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG7.png" style="width: 541px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14222i6E315184CB25D20C/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG7.png" alt="FIG7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Example 2.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Filtering for the Top &lt;EM&gt;n&lt;/EM&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Here is an example using Advanced search filters and Aggr() to filter for the Top 10 Customers (most Sales). You can of course use a variable or an expression that results in an integer instead of hard-coding the number 10.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=Customer=aggr(if(rank(sum(Sales)) &amp;lt;=10, Customer), Customer)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG3.png" style="width: 528px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14218iCB3E953D60F92EFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG3.png" alt="FIG3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Example 3.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Filtering for a range&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Similar to example 1. Here again you can use variables or expressions instead of hard-coding the numbers.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=sum(Sales)&amp;gt;=300000 and sum(Sales)&amp;lt;=500000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG4.png" style="width: 524px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14219iB5C432C941B55A46/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG4.png" alt="FIG4.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example using aggr() to get Customers with Sales above average but also less than or equal to $160,000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=sum(Sales)&amp;gt;Avg(TOTAL Aggr(Sum(Sales),Customer)) and sum(Sales)&amp;lt;=160000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG5.png" style="width: 605px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14220iF591C0A5BDDAE461/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG5.png" alt="FIG5.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Example 4.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Filtering using wildcards&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Advance search filters supports the use of wildcards. This example filters for all Customer names that begin with&amp;nbsp; IB or end with EX&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=Customer like 'IB*' or Customer like '*EX'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIG6.png" style="width: 522px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14221i041A32DDEABD667F/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIG6.png" alt="FIG6.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm very excited to see the myriad ways this powerful feature will be used going forward. I hope this short introduction gets you started.&lt;/P&gt;&lt;P&gt;- Daniel.&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;To set up the example project:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Extract the contents of &lt;EM&gt;AdvSearchExamples.zip&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Create a Connection to the Qlik Sense App&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Create the filters as listed in Filter &lt;EM&gt;Definitions.pdf&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Import the report. Instructions &lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/AdministeringQVNprinting/Import-export-report-from-different-NP-environments.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 18 Jun 2021 14:33:09 GMT</pubDate>
    <dc:creator>Daniel_Jenkins</dc:creator>
    <dc:date>2021-06-18T14:33:09Z</dc:date>
    <item>
      <title>Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/ta-p/1594779</link>
      <description>&lt;P&gt;NPrinting June 2019 introduces a new filter type called &lt;A href="https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm" target="_self"&gt;&lt;EM&gt;&lt;STRONG&gt;Advanced search&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt;. Here are a few examples of how it can be used.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 14:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/ta-p/1594779</guid>
      <dc:creator>Daniel_Jenkins</dc:creator>
      <dc:date>2021-06-18T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1595926#M32</link>
      <description>&lt;P&gt;Excellent!&lt;/P&gt;
&lt;P&gt;Thank you Daniel!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 21:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1595926#M32</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2019-06-25T21:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1617847#M33</link>
      <description>&lt;P&gt;Very concise and easy to follow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 18:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1617847#M33</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2019-08-28T18:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1630267#M34</link>
      <description>&lt;P&gt;Great tips Daniel...thanks! Do you know if there is a way to use the Advanced Filter to exclude Null values? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 22:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1630267#M34</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2019-10-01T22:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1816090#M35</link>
      <description>&lt;P&gt;This post seems to be at least partially out dated with current NPrinting version (May 2021).&lt;BR /&gt;Search string like "&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;=Date&amp;gt;=$(vStartDate) and Date&amp;lt;=$(vEndDate)&lt;/FONT&gt;&lt;/STRONG&gt;" returns error; instead correct formatting is "&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#333399"&gt;&amp;gt;=$(vStartDate) &amp;lt;=$(vEndDate)&lt;/FONT&gt;&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Qlik has a youtube videon on advanced filtering to start with here&amp;nbsp;&lt;A href="https://youtu.be/8OxJpDSXkAk" target="_blank"&gt;https://youtu.be/8OxJpDSXkAk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1816090#M35</guid>
      <dc:creator>samuli_attido</dc:creator>
      <dc:date>2021-06-18T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1819398#M36</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14647"&gt;@samuli_attido&lt;/a&gt;&amp;nbsp;I suggest you to test the formula in Qlik Sense and use it in Qlik NPrinting only after be sure it works. I tested in my installation and the following: " =Date &amp;gt;= (vStartDate) and Date &amp;lt;=(vEndDate)" works. Instead the version without the Date field is not working.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 14:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1819398#M36</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2021-07-02T14:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1924842#M37</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48708"&gt;@Daniel_Jenkins&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14647"&gt;@samuli_attido&lt;/a&gt;&amp;nbsp;@&lt;/P&gt;
&lt;P&gt;Can you please help with this below request&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting-Discussions/NPrinting-Pixel-Perfect-Report-Date-Filter-Condition/m-p/1924841#M35889" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-NPrinting-Discussions/NPrinting-Pixel-Perfect-Report-Date-Filter-Condition/m-p/1924841#M35889&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 03:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1924842#M37</guid>
      <dc:creator>rtaraka</dc:creator>
      <dc:date>2022-04-30T03:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of Advanced Search Filters</title>
      <link>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1925052#M38</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90061"&gt;@rtaraka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48708"&gt;@Daniel_Jenkins&lt;/a&gt;&amp;nbsp;doesn't work any more in the company. Please also avoid to cross posting with links not on topic. Thanks. It is better to ping us directly in the question where you need help.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 09:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Examples-of-Advanced-Search-Filters/tac-p/1925052#M38</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-05-02T09:05:46Z</dc:date>
    </item>
  </channel>
</rss>

