<?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: Display Weekname in NPrinting file name in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627364#M26097</link>
    <description>&lt;P&gt;Thanks Lech! And thanks for the examples.&lt;/P&gt;&lt;P&gt;The = sign is present in the variable "&lt;EM&gt;=weekname(today()-1)" . &lt;/EM&gt;I have tested using a simple date variable like&lt;BR /&gt;"&lt;EM&gt;= Date(Floor(Now()))&lt;/EM&gt;" and it works. I'm thinking it's a problem with evaluating the WeekName&amp;nbsp;&lt;SPAN&gt;syntax in my current variable&lt;/SPAN&gt; (or MonthName/YearName)?&lt;/P&gt;&lt;P&gt;What do you think?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 10:31:30 GMT</pubDate>
    <dc:creator>AndersGS</dc:creator>
    <dc:date>2019-09-24T10:31:30Z</dc:date>
    <item>
      <title>Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627284#M26090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a report scheduled Mondays that includes last weeks data. In the file name, I'd like to include the name of last week, i.e. for example "Weekly Sales Report 2019/38".&lt;/P&gt;&lt;P&gt;I have this variable set up in QlikView:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;SET&lt;/FONT&gt; &lt;/STRONG&gt;vWeekNameReport =weekname(today()-1)&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This variable is added to the report Dynamic name/Qlik variable&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" width="999" height="130" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" width="999" height="130" /&gt;&lt;SPAN&gt;But the file displays the content of the variable rather than the week name: "&lt;/SPAN&gt;&lt;SPAN&gt;Weekly Sales Report_weekname(today()-1)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG border="0" width="342" height="61" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running NPrinting 19 February 2019 SR1 and QlikView 11.20 SR 18.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Anders&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 18:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627284#M26090</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-09-25T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627287#M26092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This topic is very well documented with youtube tutorials and official documentation. &lt;STRONG&gt;Please read help to understand why you get a content of variable instead of actual evaluated value - link below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/ReportsDevelopment/Work-with-variables.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/ReportsDevelopment/Work-with-variables.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and also here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting-Discussions/Using-Variables-in-the-Email-Subject/td-p/1553437" target="_blank"&gt;https://community.qlik.com/t5/Qlik-NPrinting-Discussions/Using-Variables-in-the-Email-Subject/td-p/1553437&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=3HFdrqsbQlk" target="_blank"&gt;https://www.youtube.com/watch?v=3HFdrqsbQlk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;you are missing the most important thing: "="(equal sign) in front of your variable so it can evaluate!!!&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627287#M26092</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-09-24T08:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627336#M26094</link>
      <description>&lt;P&gt;Just to follow up - my examples show you how to use variable in message subject etc.. but princliple is the same as variable needs to be evaluated....&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627336#M26094</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-09-24T09:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627364#M26097</link>
      <description>&lt;P&gt;Thanks Lech! And thanks for the examples.&lt;/P&gt;&lt;P&gt;The = sign is present in the variable "&lt;EM&gt;=weekname(today()-1)" . &lt;/EM&gt;I have tested using a simple date variable like&lt;BR /&gt;"&lt;EM&gt;= Date(Floor(Now()))&lt;/EM&gt;" and it works. I'm thinking it's a problem with evaluating the WeekName&amp;nbsp;&lt;SPAN&gt;syntax in my current variable&lt;/SPAN&gt; (or MonthName/YearName)?&lt;/P&gt;&lt;P&gt;What do you think?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627364#M26097</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-09-24T10:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627370#M26098</link>
      <description>&lt;P&gt;Could be the fact that WeekName returns 2019/38 which would&amp;nbsp; be a non supported file name. How could I amend the variable to change the "/" to a "-"?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627370#M26098</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-09-24T10:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627371#M26099</link>
      <description>&lt;P&gt;How about replace($(variable),’/‘,’-‘)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627371#M26099</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-09-24T10:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627545#M26103</link>
      <description>&lt;P&gt;Thanks. I created these two variables:&lt;/P&gt;&lt;P&gt;SET vWeekName_LW&amp;nbsp; &amp;nbsp; = WeekName$(vReloadDate)-1;&lt;BR /&gt;SET vReport_LW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= replace($(vWeekName_LW),'/','-w');&lt;/P&gt;&lt;P&gt;but it still does not do the trick unfortunately:&lt;/P&gt;&lt;P&gt;Output pdf file name:&amp;nbsp; &lt;EM&gt;Weekly Report_replace(WeekName2019-09-24-1,'_','-w').pdf&lt;BR /&gt;&lt;/EM&gt;what I want to see here is rather&amp;nbsp;&lt;EM&gt;Weekly Report_2019-w39.pdf&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 14:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627545#M26103</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-09-24T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627886#M26106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this means that you are putting = sign in front of first variable and not the second variable&lt;/P&gt;&lt;P&gt;simply use one variable for this exercise and again - note the "=" sign which you did not have in front of your variable expression&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SET vWeekName_LW&amp;nbsp; &amp;nbsp; = "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt;Replace(Text(WeekName(Floor(ReloadTime())-1)),'/','-')";&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 21:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1627886#M26106</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-09-24T21:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1628024#M26120</link>
      <description>&lt;P&gt;Worked perfect, thanks Lech!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 11:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1628024#M26120</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-09-25T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display Weekname in NPrinting file name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1628084#M26122</link>
      <description>&lt;P&gt;No worries mate!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 12:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Display-Weekname-in-NPrinting-file-name/m-p/1628084#M26122</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-09-25T12:42:53Z</dc:date>
    </item>
  </channel>
</rss>

