<?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: Can't evaluate variable in NPrinting in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332357#M16871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no worries,&lt;/P&gt;&lt;P&gt;Note also that by adding CHR(39) at the beggining of Header Text effectively we are producing string auch as:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; Exception Report &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; 11/05/2017 6:00:00 AM &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; 12:05/2017 6:00:00 AM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;The "&lt;STRONG&gt; '&lt;/STRONG&gt; " (single quote &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;character&lt;/SPAN&gt;) once moved to excel changes cell type to Text, so excel does not try to calculate formula like "=On-Time......"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;hope this helps &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;Lech&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 21:19:19 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2017-05-12T21:19:19Z</dc:date>
    <item>
      <title>Can't evaluate variable in NPrinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332353#M16867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got some header text that I would like to include in an NPrinting Excel report.&amp;nbsp; It looks something like this in my Data Load section of Qlik Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14945333576932929" jivemacro_uid="_14945333576932929"&gt;
&lt;P&gt;LET Today = timestamp(daystart(timestamp(today())) + maketime(6))&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;LET Yesterday = timestamp(daystart(timestamp(today()-1)) + maketime(6))&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;SET HeaderText = On-Time Exception Report for $(Yesterday) to $(Today)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried pretty much everything including creating a variable in NPrinting and I alway get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Garbage after expression: 'Exception'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to make my header get calculated properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ExpressionIssue.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163048_ExpressionIssue.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 20:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332353#M16867</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2017-05-11T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't evaluate variable in NPrinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332354#M16868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Did you try:&lt;/P&gt;&lt;PRE class="sql" name="code"&gt;&lt;SPAN style="white-space: normal; background-color: rgba(255, 255, 255, 0);"&gt;LET&lt;/SPAN&gt;&lt;SPAN style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt; HeaderText = 'On-Time Exception Report for $(Yesterday) to $(Today)';&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="sql" name="code"&gt;&lt;SPAN style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 20:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332354#M16868</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-05-11T20:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't evaluate variable in NPrinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332355#M16869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This &amp;amp; then just use variable in your NPrinitng Template&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Today = timestamp(daystart(timestamp(today())) + maketime(6));&amp;nbsp; &lt;/P&gt;&lt;P&gt;LET Yesterday = timestamp(daystart(timestamp(today()-1)) + maketime(6));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET&lt;/SPAN&gt;HeaderText = CHR(39)&amp;amp; 'On-Time Exception Report for '&amp;amp; '$(Yesterday)'&amp;amp;' to '&amp;amp;'$(Today)'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="np1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163087_np1.png" style="height: 504px; width: 620px;" /&gt;&lt;IMG alt="np2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/163103_np2.png" style="height: 31px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="np2.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/163104_np2.png" style="height: 201px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 07:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332355#M16869</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2017-05-12T07:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't evaluate variable in NPrinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332356#M16870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the main difference is that I have "SET" where you have "LET".&amp;nbsp; Once I dropped that in using your example it worked as I expected it to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 15:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332356#M16870</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2017-05-12T15:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't evaluate variable in NPrinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332357#M16871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no worries,&lt;/P&gt;&lt;P&gt;Note also that by adding CHR(39) at the beggining of Header Text effectively we are producing string auch as:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; Exception Report &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; 11/05/2017 6:00:00 AM &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; 12:05/2017 6:00:00 AM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;The "&lt;STRONG&gt; '&lt;/STRONG&gt; " (single quote &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;character&lt;/SPAN&gt;) once moved to excel changes cell type to Text, so excel does not try to calculate formula like "=On-Time......"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;hope this helps &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;Lech&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 21:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Can-t-evaluate-variable-in-NPrinting/m-p/1332357#M16871</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2017-05-12T21:19:19Z</dc:date>
    </item>
  </channel>
</rss>

