<?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 nPrinting question: syntax for variable in filter expression? in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/nPrinting-question-syntax-for-variable-in-filter-expression/m-p/852528#M5359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if these go here, or not, but here goes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the function "FirstWorkDate(date,num of days, excluded dates). with a variable "vHolidays" in the "excluded dates" field.&lt;/P&gt;&lt;P&gt;(vHoliday is simply '1/1/2016','12/25/2016','9/2/2016' etc.) to filter a report to the previous working day, holidays excluded. The function works fine today, but I wanted to add the Holidays in one group, instead of an enumerated list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I thought I needed to use $-sign expansion, so in my filter formula, I entered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstWorkDate(today(0)-1,1,$(vHolidays)), which is accepted just fine, but when I added yesterday's date to the Holiday list to test it, it still gave me data for April 15; not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried FirstWorkDate(today(0)-1,1,'$(vHolidays)') but this gave me "error in expression" and an empty report, instead of picking April 14. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I tried "FirstWorkDate(today(0)-1,1,vHoliday), but that again gave me data for April 15, not April 14. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the proper way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 20:06:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-16T20:06:49Z</dc:date>
    <item>
      <title>nPrinting question: syntax for variable in filter expression?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/nPrinting-question-syntax-for-variable-in-filter-expression/m-p/852528#M5359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if these go here, or not, but here goes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the function "FirstWorkDate(date,num of days, excluded dates). with a variable "vHolidays" in the "excluded dates" field.&lt;/P&gt;&lt;P&gt;(vHoliday is simply '1/1/2016','12/25/2016','9/2/2016' etc.) to filter a report to the previous working day, holidays excluded. The function works fine today, but I wanted to add the Holidays in one group, instead of an enumerated list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I thought I needed to use $-sign expansion, so in my filter formula, I entered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstWorkDate(today(0)-1,1,$(vHolidays)), which is accepted just fine, but when I added yesterday's date to the Holiday list to test it, it still gave me data for April 15; not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried FirstWorkDate(today(0)-1,1,'$(vHolidays)') but this gave me "error in expression" and an empty report, instead of picking April 14. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I tried "FirstWorkDate(today(0)-1,1,vHoliday), but that again gave me data for April 15, not April 14. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the proper way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/nPrinting-question-syntax-for-variable-in-filter-expression/m-p/852528#M5359</guid>
      <dc:creator />
      <dc:date>2015-04-16T20:06:49Z</dc:date>
    </item>
  </channel>
</rss>

