<?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: NPrinting - Create formula which returns a string in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667522#M27670</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100485"&gt;@jrl&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;pointed you into right direction. The other factor why your formula may not work is the definition of your variable. What is it? Is the value set to&amp;nbsp;&lt;SPAN&gt;2019Q3 or is it a an expression which calcualtes and returns this value. In such case you would have to expand it using $ sign&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=PICK(RIGHT(&lt;STRONG&gt;$(vReportingQuarter)&lt;/STRONG&gt;,1),'March','June','September','December')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hope this helps&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 22:23:27 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2020-01-20T22:23:27Z</dc:date>
    <item>
      <title>NPrinting - Create formula which returns a string</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1666960#M27658</link>
      <description>&lt;P&gt;I can't seem to create a formula in NPrinting that returns a string.&amp;nbsp; Every time I preview the template, the formula just shows "-".&amp;nbsp; Is there a specific function in QlikView/NPrinting that will allow the string to evaluate properly?&lt;/P&gt;&lt;P&gt;The specifics of the issue are:&lt;/P&gt;&lt;P&gt;- I have a variable called vReportingQuarter = "2019Q3".&lt;/P&gt;&lt;P&gt;- I'm attempting to convert the vReportingQuarter variable to a string like "September 30, 2019".&lt;/P&gt;&lt;P&gt;- I've attempted to build a formula like: =PICK(RIGHT(vReportingQuarter,1),"March","June","September","December"), but when I add this to the template, it just evaluates as "-"&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 01:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1666960#M27658</guid>
      <dc:creator>jrl</dc:creator>
      <dc:date>2020-01-18T01:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Create formula which returns a string</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667397#M27665</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes, Qlik NPrinting supports QlikView/Qlik Sense formulas that return strings. Formulas must return a single value, so a single string is ok.&lt;/P&gt;
&lt;P&gt;In your case, did you test the formula in QlikView before to insert it into Qlik NPrinting? Qlik NPrinting doesn't evaluate the formulas, it send them to QlikView/Qlik Sense and wait for the results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested your formula in QlikView and I needed to modify it to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;=PICK(RIGHT(vReportingQuarter,1),'March','June','September','December')&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;in order to get the correct result in QlikView.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 15:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667397#M27665</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2020-01-20T15:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Create formula which returns a string</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667401#M27666</link>
      <description>&lt;P&gt;Hello Jrl,&lt;/P&gt;&lt;P&gt;Why don't you code the expression as you want in QlikView and then just import to NPrinting?&lt;/P&gt;&lt;P&gt;Which type of report are you trying to build? Excel, Pixel Perfect, PowerPoint?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;André Braga&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 15:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667401#M27666</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2020-01-20T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Create formula which returns a string</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667522#M27670</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100485"&gt;@jrl&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;pointed you into right direction. The other factor why your formula may not work is the definition of your variable. What is it? Is the value set to&amp;nbsp;&lt;SPAN&gt;2019Q3 or is it a an expression which calcualtes and returns this value. In such case you would have to expand it using $ sign&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=PICK(RIGHT(&lt;STRONG&gt;$(vReportingQuarter)&lt;/STRONG&gt;,1),'March','June','September','December')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hope this helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 22:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667522#M27670</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-01-20T22:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Create formula which returns a string</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667903#M27678</link>
      <description>&lt;P&gt;Ugh!&amp;nbsp; Single quotes!&amp;nbsp; Of course.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 21:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Create-formula-which-returns-a-string/m-p/1667903#M27678</guid>
      <dc:creator>jrl</dc:creator>
      <dc:date>2020-01-21T21:08:10Z</dc:date>
    </item>
  </channel>
</rss>

