<?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: How to store multiple values in a single Qlik Variable? in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724269#M29329</link>
    <description>&lt;P&gt;For each EmpId, a variable will be created and stores the Email IDs associated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV09.PNG" style="width: 818px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36784iAC07391F1E1175D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV09.PNG" alt="commQV09.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 02:47:46 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-07-02T02:47:46Z</dc:date>
    <item>
      <title>How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1723349#M29323</link>
      <description>&lt;P&gt;I have a requirement of storing multiple email addresses of users in a single variable so that the variable can be used in NPrinting Task to distribute the mail. I have data in this format-&lt;/P&gt;&lt;P&gt;Employee_Detail:&lt;BR /&gt;load * inline [&lt;/P&gt;&lt;P&gt;EmpId,User,Email_id&lt;BR /&gt;1,Garima,'garima.kul@abc.com,gar.kuls@abc.com'&lt;BR /&gt;2,Kunal,kunal.dhawan@abc.com&lt;BR /&gt;3,Naresh,naresh.kr@abc.com&lt;BR /&gt;4,Durgesh,durgesh.pl@abc.com&lt;BR /&gt;5,Subodh,subodh.chn@abc.com&lt;BR /&gt;6,Sayali,sayali.ra@abc.com&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;so the variable should be able to store multiple addresses against a single user., eg for&amp;nbsp; EmpId 1 there are 2 email addresses so variable should store both the mail addresses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking in anticipation.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1723349#M29323</guid>
      <dc:creator>Garima2020</dc:creator>
      <dc:date>2024-11-16T00:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1723403#M29324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the loadscript, you add something like this:&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD concat(distinct&amp;nbsp;&lt;SPAN&gt;Email_id, ',') AS All_Email&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;resident&amp;nbsp;Employee_Detail;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;let vEmails = peek('All_Email', 0, 'tmp');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;drop table tmp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the layout, you can basically use the same expression:&amp;nbsp;concat(distinct&amp;nbsp;Email_id, ',')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 07:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1723403#M29324</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-06-30T07:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724262#M29327</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28676"&gt;@fosuzuki&lt;/a&gt;&amp;nbsp; is right. My additional comments below to clarify:&lt;/P&gt;&lt;P&gt;What you have to remember is that you either have to concatenate all emails in script - this will not be a dynamic solution though.&lt;/P&gt;&lt;P&gt;On the other hand if you want to have dynamic emails selected based on user filter you need to create a variable as expression starting with "=" sign in your variable definition.&lt;/P&gt;&lt;P&gt;So your variable should be:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LET vEmails =&amp;nbsp; &lt;STRONG&gt;'&lt;FONT color="#FF0000"&gt;=&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;concat(distinct&amp;nbsp;Email_id, ',')'&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reasons for equal sign are explained here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/Troubleshooting/Variables-dont-expand-before-calculating.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/Troubleshooting/Variables-dont-expand-before-calculating.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 01:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724262#M29327</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-07-02T01:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724267#M29328</link>
      <description>&lt;P&gt;Check this code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Employee_Detail:
load * inline [
EmpId,User,Email_id
1,Garima,'garima.kul@abc.com,gar.kuls@abc.com'
2,Kunal,kunal.dhawan@abc.com
3,Naresh,naresh.kr@abc.com
4,Durgesh,durgesh.pl@abc.com
5,Subodh,subodh.chn@abc.com
6,Sayali,sayali.ra@abc.com
];

tab1:
LOAD Concat('Let vEmail_'&amp;amp;EmpId&amp;amp;'='&amp;amp;Chr(39)&amp;amp;Email_id&amp;amp;Chr(39),';') As FreeText
Resident Employee_Detail;

Let vFreeText=Peek('FreeText');

$(vFreeText);

Drop Table tab1;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jul 2020 02:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724267#M29328</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-07-02T02:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724269#M29329</link>
      <description>&lt;P&gt;For each EmpId, a variable will be created and stores the Email IDs associated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV09.PNG" style="width: 818px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36784iAC07391F1E1175D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV09.PNG" alt="commQV09.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 02:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724269#M29329</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-07-02T02:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724270#M29330</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your solution although it shows how to dynamically create various variables for each row it does not make sense in this context.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that the topic is in regards to NPrinting. Based on the context I can see that this variable will be used for report distribution in email (variable).&amp;nbsp; So if you create a new variable for each&amp;nbsp;&lt;SPAN&gt;EmpId there will be no easy way of referencing&amp;nbsp;this variable in dynamic email (in NPrinting). The typical and one feasible solution is the one where you have an expression as variable definition (look up mine previous comment ) and you simply reference a variable in your dynamic email FROM, CC or BCC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724270#M29330</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-07-02T03:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724274#M29331</link>
      <description>&lt;P&gt;I agree with you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724274#M29331</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-07-02T03:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724560#M29340</link>
      <description>&lt;P&gt;I just created a Nprinting test and it is working good using a small twist on the above information from Lech and company. Instead of inline I am building off a excel sample of some employee data with a new field called special. Inside of the qlik app I placed the following in the variables creator:&lt;/P&gt;&lt;P&gt;=Concat(IF(Special='Y', Testemail), ';&amp;nbsp; ')&lt;/P&gt;&lt;P&gt;You could designate this by dept., role, special designation, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Nprinting Task, email section, I just placed the Qlik Variable in the To section. This worked wonderfully and would be easy to change on the fly. Will be using this for special purpose reports!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 15:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724560#M29340</guid>
      <dc:creator>Steven_Haught</dc:creator>
      <dc:date>2020-07-02T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724676#M29345</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/69294"&gt;@Steven_Haught&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When working with NPrinting always think about performance!!&lt;/P&gt;&lt;P&gt;your formula&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Concat(IF(Special='Y', Testemail), ';&amp;nbsp; ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;should be replaced with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Concat({&amp;lt;Special*={'Y'}&amp;gt;} Testemail), ';&amp;nbsp; ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On large data amount it may have a major impact on report production performance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Performance-of-Conditional-Aggregations/ba-p/1463021" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Performance-of-Conditional-Aggregations/ba-p/1463021&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"...The bottom line is that Set Analysis is the method you should use for large data amounts. For smaller data amounts, it doesn’t really matter which method you choose: They are all fast enough..."&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 01:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724676#M29345</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-07-03T01:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724838#M29357</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;That is great point that I overlooked and a wonderful solution. This will ultimately scale up to a very large data set and that would have likely caused performance issues! I will update my notes and keep that handy!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 12:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1724838#M29357</guid>
      <dc:creator>Steven_Haught</dc:creator>
      <dc:date>2020-07-03T12:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multiple values in a single Qlik Variable?</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1725183#M29366</link>
      <description>&lt;P&gt;I totally agree with you.&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 03:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-store-multiple-values-in-a-single-Qlik-Variable/m-p/1725183#M29366</guid>
      <dc:creator>Garima2020</dc:creator>
      <dc:date>2020-07-06T03:32:49Z</dc:date>
    </item>
  </channel>
</rss>

