<?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 - Dynamic Sheet Name in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054117#M38565</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/204175"&gt;@profilejamesbond&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1. Create variables in script containing the expression for dynamic sheet names.&lt;/P&gt;
&lt;P&gt;2. Add those variables in a inline table and use the inline table fields in frontend table chart.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;let vName=&amp;lt;your expression for dynamic naming&amp;gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;dynamicsheetName:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;load * inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SheetName&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$(vName)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3. Now as posted by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp; add the qliksense object in 'Page' option in Nprinting template and a sheet will be automatically get created having the same name as your qliksense chart column value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 12:41:56 GMT</pubDate>
    <dc:creator>Aditya_Chitale</dc:creator>
    <dc:date>2023-03-28T12:41:56Z</dc:date>
    <item>
      <title>NPrinting - Dynamic Sheet Name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054073#M38562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to assign a dynamic name to the NPrinting Sheet Name&amp;nbsp;but somehow it is not working. I followed these steps but still not working:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; I created a variable in the QlikView -&amp;gt;&amp;nbsp;&lt;STRONG&gt;vMaxWeekName&amp;nbsp;&lt;/STRONG&gt;=MonthName(Max(DATE)) &amp;amp; '_' &amp;amp; KW01&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Added variable "&lt;STRONG&gt;vMaxWeekName&lt;/STRONG&gt;" in NPrinting Variable section&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Drag and Dropped this variable &lt;STRONG&gt;vMaxWeekName&amp;nbsp;&lt;/STRONG&gt;in NPrinting Sheet Title. But see static output as it is variable name:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="profilejamesbond_0-1680001890406.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103662iEEC85E34C521764C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="profilejamesbond_0-1680001890406.png" alt="profilejamesbond_0-1680001890406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried these 2 solutions but are not working for me:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting/Formula-in-Excel-Sheet-Names/td-p/1607621" target="_blank"&gt;https://community.qlik.com/t5/Qlik-NPrinting/Formula-in-Excel-Sheet-Names/td-p/1607621&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35867"&gt;@avinashelite&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting/renaming-lt-NPrinting-Sheet-Label-Page-gt/m-p/967793#M6847" target="_blank"&gt;https://community.qlik.com/t5/Qlik-NPrinting/renaming-lt-NPrinting-Sheet-Label-Page-gt/m-p/967793#M6847&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054073#M38562</guid>
      <dc:creator>profilejamesbond</dc:creator>
      <dc:date>2024-11-15T21:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Dynamic Sheet Name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054113#M38564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/204175"&gt;@profilejamesbond&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mine example is the only one which can give you dynamic sheet name. It is not based on variables or formulas but it must be based on &amp;lt;Page&amp;gt; tag and field value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My explanation in link provided is very thorough so I am not sure which part is not working for you?&lt;/P&gt;
&lt;P&gt;As per analogy you would need to create a field in your data model which would store that single value of MAX Week Name as a field value and then just use it as a page in excel template&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054113#M38564</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-03-28T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Dynamic Sheet Name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054117#M38565</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/204175"&gt;@profilejamesbond&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1. Create variables in script containing the expression for dynamic sheet names.&lt;/P&gt;
&lt;P&gt;2. Add those variables in a inline table and use the inline table fields in frontend table chart.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;let vName=&amp;lt;your expression for dynamic naming&amp;gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;dynamicsheetName:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;load * inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SheetName&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$(vName)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3. Now as posted by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp; add the qliksense object in 'Page' option in Nprinting template and a sheet will be automatically get created having the same name as your qliksense chart column value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054117#M38565</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2023-03-28T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Dynamic Sheet Name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054484#M38572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I see the variable is not working but with page it is working.&lt;/P&gt;
&lt;P&gt;I want to ask you last thing, how to handle multipe sheet names.&lt;/P&gt;
&lt;P&gt;Do I need to create multiple fields in Data Island for each sheet name or anyother way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;1. I have one report in excel file format and it has two tabs:&lt;/P&gt;
&lt;P&gt;1st tab name is 'Text' &amp;amp; Calender Week&lt;/P&gt;
&lt;P&gt;2nd tab name 'Text' &amp;amp; This Year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I have another report in excel file format and it has also two tabs:&lt;/P&gt;
&lt;P&gt;1st tab name is 'Text' &amp;amp; Calender Week&lt;/P&gt;
&lt;P&gt;2nd tab name 'Text' &amp;amp; Last Year&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 07:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054484#M38572</guid>
      <dc:creator>profilejamesbond</dc:creator>
      <dc:date>2023-03-29T07:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting - Dynamic Sheet Name</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054508#M38573</link>
      <description>&lt;P&gt;It depend what those Sheets in Excel represent.&lt;/P&gt;
&lt;P&gt;If each of those sheets contains different layout of the report then yes - you need to create individual independent fields. My solution is just a workaround as &amp;lt;Page&amp;gt; has normally completely different use - see&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ExcelReports/Create-Excel-Reports.htm#anchor-7" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ExcelReports/Create-Excel-Reports.htm#anchor-7&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if your Week and Year Sheets are exactly the same and only time frame is different which has to be applied then maybe you could leverage &amp;lt;Page&amp;gt; and use single field with grouping dimension which will support both reports.&lt;/P&gt;
&lt;P&gt;I suggest you study thoroughly the help document for more info.&lt;/P&gt;
&lt;P&gt;cheers&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 08:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-Dynamic-Sheet-Name/m-p/2054508#M38573</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-03-29T08:22:12Z</dc:date>
    </item>
  </channel>
</rss>

