<?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 Using IncludeFiles to reduce filter maintenance in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Using-IncludeFiles-to-reduce-filter-maintenance/m-p/970198#M6896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At my firm, we produce a lot of reports filtered to US Sales, Canadian Sales, Customer Service Reps, etc. These positions go through a fair amount of turnover, and when the filters were hard-coded in nPrinting, each change meant I had to go through (say) five or six different Sales Reports, and change the filter to add Tom, and remove Harry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I use IncludeFiles to eliminate the need to change filters. I created an Excel file with separate tabs for each groups, and in each tab, I put in the Group name, and the member ID. &lt;IMG alt="ugroup.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101899_ugroup.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I have the following code in a text file:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ussales.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/101910_ussales.png" style="height: 222px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is 'borrowed' from someone (Rob Wunderlich, maybe?) and I am just reusing it. It steps through the members, and creates a comma separated, quote delineated string, e.g 'BMOR', 'EKES', 'HPRI', 'JHAR', 'JSIL', which is then assigned to the variable "vUSSales". &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now, in my nPrinting filters, I can select the field "Sales Rep", and set the value equal to =$(vUSSales) &amp;lt;- Note that the "dollar-sign-expansion" is required.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that our Admin staff can go into the Excel file, add or delete or modify the members of any group/value of any field that is to be used in a filter without knowing anything about nPrinting or QV, and, much more important, without my involvement. This has simplified and sped up our reporting process and eliminated a number of errors. I currently have 13 tabs in my Excel file, covering everything from Sales Rep to Holiday dates, to Titles to be searched. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 15:44:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-13T15:44:56Z</dc:date>
    <item>
      <title>Using IncludeFiles to reduce filter maintenance</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Using-IncludeFiles-to-reduce-filter-maintenance/m-p/970198#M6896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At my firm, we produce a lot of reports filtered to US Sales, Canadian Sales, Customer Service Reps, etc. These positions go through a fair amount of turnover, and when the filters were hard-coded in nPrinting, each change meant I had to go through (say) five or six different Sales Reports, and change the filter to add Tom, and remove Harry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I use IncludeFiles to eliminate the need to change filters. I created an Excel file with separate tabs for each groups, and in each tab, I put in the Group name, and the member ID. &lt;IMG alt="ugroup.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101899_ugroup.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I have the following code in a text file:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ussales.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/101910_ussales.png" style="height: 222px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is 'borrowed' from someone (Rob Wunderlich, maybe?) and I am just reusing it. It steps through the members, and creates a comma separated, quote delineated string, e.g 'BMOR', 'EKES', 'HPRI', 'JHAR', 'JSIL', which is then assigned to the variable "vUSSales". &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now, in my nPrinting filters, I can select the field "Sales Rep", and set the value equal to =$(vUSSales) &amp;lt;- Note that the "dollar-sign-expansion" is required.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that our Admin staff can go into the Excel file, add or delete or modify the members of any group/value of any field that is to be used in a filter without knowing anything about nPrinting or QV, and, much more important, without my involvement. This has simplified and sped up our reporting process and eliminated a number of errors. I currently have 13 tabs in my Excel file, covering everything from Sales Rep to Holiday dates, to Titles to be searched. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 15:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Using-IncludeFiles-to-reduce-filter-maintenance/m-p/970198#M6896</guid>
      <dc:creator />
      <dc:date>2015-10-13T15:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using IncludeFiles to reduce filter maintenance</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Using-IncludeFiles-to-reduce-filter-maintenance/m-p/970199#M6897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should have added that in my script, one of my first lines is:&lt;/P&gt;&lt;P&gt;$(Must_Include=C:\IncludeFiles\UserGroups.txt); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Must_Include because it throws up an error message if there's a problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 15:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Using-IncludeFiles-to-reduce-filter-maintenance/m-p/970199#M6897</guid>
      <dc:creator />
      <dc:date>2015-10-13T15:46:28Z</dc:date>
    </item>
  </channel>
</rss>

