<?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: Excel text function inside the excel report in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016293#M37781</link>
    <description>&lt;P&gt;Hi Frank,&lt;/P&gt;
&lt;P&gt;In formula you used fixed text (abcdef).&lt;/P&gt;
&lt;P&gt;So, you take right('abcdef', 3) and it worked.&lt;/P&gt;
&lt;P&gt;But how could you make it to use a field from qlik instead?&lt;/P&gt;
&lt;P&gt;Something like right([text], 3).&lt;/P&gt;
&lt;P&gt;This is what I want.&lt;/P&gt;
&lt;P&gt;Thank you for your assistance,&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 07:54:34 GMT</pubDate>
    <dc:creator>nskatzis</dc:creator>
    <dc:date>2022-12-14T07:54:34Z</dc:date>
    <item>
      <title>Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015470#M37764</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a field called "Group" and I want to display in an excel report the right("Group", 1).&lt;/P&gt;
&lt;P&gt;The only way I found is to display &amp;lt;Group&amp;gt; value in the column, then to hide the column and create an excel function&lt;/P&gt;
&lt;P&gt;= right(colname, 1).&lt;/P&gt;
&lt;P&gt;I also tried to create a variable.&lt;/P&gt;
&lt;P&gt;I put the formula&lt;/P&gt;
&lt;P&gt;=right([Group], 1)&lt;/P&gt;
&lt;P&gt;But when I display the variable, I don't have what I want.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015470#M37764</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2022-12-12T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015621#M37765</link>
      <description>&lt;P&gt;Not exactly sure what you want here so I will make an assumption and guess at what you need to do.&lt;/P&gt;&lt;P&gt;1. Create an NP filter called 'xgroup'&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-6" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Add your table to the report&lt;/P&gt;&lt;P&gt;3. Insert your object filter&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-12" target="_blank"&gt;Applying a filter to an object&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image_resized" style="width:61.66%;" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/0d605467-1eb1-48dc-bf9e-91e6981db78f.default.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards...&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 19:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015621#M37765</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2022-12-12T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015870#M37769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You have a field, Group, that contains many values and you want to show only the first letter on the right in your report.&lt;/P&gt;
&lt;P&gt;The first solution you proposed, using Excel formulas in the template, is correct. You can create a native Excel table so the formula will be propagated in the column and hide the source one. Hidden Excel worksheets are also supported, so you can insert the source field in a hidden worksheet and place the formula in one visible.&lt;/P&gt;
&lt;P&gt;Another idea is to move the formula in the Qlik data reload script by creating a new field. This moves the calculation efforts to data reload and can be an advantage because you avoid Excel calculations on all generated reports.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 11:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015870#M37769</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-12-13T11:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015886#M37771</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;
&lt;P&gt;What I want is pretty simple:&lt;/P&gt;
&lt;P&gt;I'm having "Group 1" from my qlik sense and I want to display just "1", the last character.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nskatzis_2-1670931003901.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96067i2EED6DBFF2319872/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nskatzis_2-1670931003901.png" alt="nskatzis_2-1670931003901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nskatzis_0-1670930433297.png" style="width: 0px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96062iB5F47AB24DB054C1/image-size/small?v=v2&amp;amp;px=200" width="0" height="0" role="button" title="nskatzis_0-1670930433297.png" alt="nskatzis_0-1670930433297.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't want to create a new column for that and make the original hidden.&lt;/P&gt;
&lt;P&gt;Which is instead of &amp;lt;Group&amp;gt; field in column B, to display something like right(&amp;lt;Group&amp;gt;, 1).&lt;/P&gt;
&lt;P&gt;I tried to create the following formula and display it in column C but the results are not correct as you can see.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nskatzis_1-1670930810691.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96066i0259CBA5DA616485/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nskatzis_1-1670930810691.png" alt="nskatzis_1-1670930810691.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course, I know that I can have the result in qlik sense. I'm wondering if I can have it somehow in nPrinting.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 11:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2015886#M37771</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2022-12-13T11:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016180#M37780</link>
      <description>&lt;P&gt;I think I understand now.&lt;/P&gt;
&lt;P&gt;It is possible to use the formula editor to do a 'Right'. I've tested and it works.&lt;/P&gt;
&lt;P&gt;See the example I used from this help page.&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2022/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Right.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2022/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Right.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I used the load script in an new app and created a chart in Qlik Sense&lt;/P&gt;
&lt;P&gt;I used the same syntax from this page above to create a formula in NPrinting using the formula editor.&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Right('abcdef', 3)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;Not sure if this helps but here it is none the less with 'def' appearing in cell E1 in the report output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/50587de8-d8a8-4adf-b88e-4ab68b48106d.default.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 21:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016180#M37780</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2022-12-13T21:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016293#M37781</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;
&lt;P&gt;In formula you used fixed text (abcdef).&lt;/P&gt;
&lt;P&gt;So, you take right('abcdef', 3) and it worked.&lt;/P&gt;
&lt;P&gt;But how could you make it to use a field from qlik instead?&lt;/P&gt;
&lt;P&gt;Something like right([text], 3).&lt;/P&gt;
&lt;P&gt;This is what I want.&lt;/P&gt;
&lt;P&gt;Thank you for your assistance,&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 07:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016293#M37781</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2022-12-14T07:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016321#M37782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Qlik NPrinting formulas must return a single value, not an array, as documented in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Formulas.htm#anchor-2" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Formulas.htm#anchor-2&lt;/A&gt;. You cannot get a column of values by simple adding a formula as wrote in previous posts.&lt;/P&gt;
&lt;P&gt;The best solutions are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new field in the Qlik Sense reload script (pro: one time calculation only during reload. cons: you have to change the reload script)&lt;/LI&gt;
&lt;LI&gt;Create a native Excel table, add a table formula using Excel syntax and hide the source column. Qlik NPrinting will propagate the formula during report generation. Details are explained in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ExcelReports/Make-Calculated-Column.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ExcelReports/Make-Calculated-Column.htm&lt;/A&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Both those solutions are fast during reports generation, the first is faster and it is the one I suggest every time the scenario lets you to move the calculations on the reload script.&lt;/P&gt;
&lt;P&gt;I strongly suggest you to avoid to use the following solution. It uses Qlik NPrinting formulas but it is very slow because it uses levels and each value of a level is a filter so you have to wait that the filter is applied and resultiv row of values returned. This will increase the report generation time that can become not acceptable in particular with huge reports. This was the only way to create tables with version of Excel before 2007 that was the first supporting native tables.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;create a level with the source straight table&lt;/LI&gt;
&lt;LI&gt;drag and drop the level tags and the fields you need inside them in the template&lt;/LI&gt;
&lt;LI&gt;create the formula using the source field and drag and drop it into the template&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_0-1671006831235.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96156i71D4E025A34D1E6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ruggero_Piccoli_0-1671006831235.png" alt="Ruggero_Piccoli_0-1671006831235.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Each row of the source table is a filter that returns a single value used by the formula. So in this case the formula will work returning a single value.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_1-1671006962085.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96157i284E213ACD7ED318/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ruggero_Piccoli_1-1671006962085.png" alt="Ruggero_Piccoli_1-1671006962085.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This solution is slower, there are the two alternatives I wrote you before so I suggest you to select one of them instead of this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 08:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016321#M37782</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-12-14T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel text function inside the excel report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016334#M37783</link>
      <description>&lt;P&gt;Hello Ruggero,&lt;/P&gt;
&lt;P&gt;I appreciate your help and analysis.&lt;/P&gt;
&lt;P&gt;The two best practices were exactly what I already knew.&lt;/P&gt;
&lt;P&gt;I didn't know the reason why you can't apply the formula to all the values from a column. No I know &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 08:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Excel-text-function-inside-the-excel-report/m-p/2016334#M37783</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2022-12-14T08:48:10Z</dc:date>
    </item>
  </channel>
</rss>

