<?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: Create concatenated string variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789599#M1296980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or keep the SET keyword, but write the right-hand part like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SET vCusipList = $(vCusIpList)|$(vCurrent);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;$-sign substitution will still work. It always works...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 20:57:57 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-02-11T20:57:57Z</dc:date>
    <item>
      <title>Create concatenated string variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789596#M1296971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem that I hope someone can help me solve. I have a dashboard that displays trade information. The users have a list of CUSIPs - just strings - that they want to use to either use as the search condition or use as a list to exclude in the search. The don't always want to apply this filter, so it should be a button/check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first case, I tried to create a list of CUSIPs from the user table delimited by a pipe in order to use a Select in Field action. Here is my code in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCusipList = Text(peek('CUSIPtoExclude',1)) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=2 to NoOfRows('ExcludeCUSIP')&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vCurrent = Text(peek('CUSIPtoExclude',i));&lt;/P&gt;&lt;P&gt;&amp;nbsp; set vCusipList = $(vCusipList) &amp;amp; '|' &amp;amp; $(vCurrent);&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that this code is running correctly in debug, but I can't display the final value of vCusipList. Is there a limit to the lenght of a variable? There are over 400 CUSIPs in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any good ideas for the exclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789596#M1296971</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create concatenated string variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789597#M1296975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have a list of excluded I think you can use a button with 2 actions&lt;/P&gt;&lt;P&gt;- select in field ....&lt;/P&gt;&lt;P&gt;- select excluded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 20:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789597#M1296975</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-11T20:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create concatenated string variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789598#M1296979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird. The SET statement cannot produce a correct value, as it will treat everything after the equal sign as text. And this doesn't depend on whether you are running in debug mode or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Load Script Loop, change the SET into a LET and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 20:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789598#M1296979</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-02-11T20:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create concatenated string variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789599#M1296980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or keep the SET keyword, but write the right-hand part like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SET vCusipList = $(vCusIpList)|$(vCurrent);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;$-sign substitution will still work. It always works...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 20:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789599#M1296980</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-02-11T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create concatenated string variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789600#M1296984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo - Your solution is working. I added a Clear Field and then Select Possible action before my Select in Field action in my button and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter - Let gives me this error: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Script line error: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vCusipList = '(' &amp;amp; (543495857|543495832) &amp;amp; '|' &amp;amp; 543495717 &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set seems to work, but it appears that the size limit for variables is reached. I don't have time to explore this solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 21:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789600#M1296984</guid>
      <dc:creator />
      <dc:date>2015-02-11T21:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create concatenated string variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789601#M1296988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script line error is caused by the vertical bar between two large numbers. Vertical bar is no known operator. You have to turn everything into a string for the concatenation operators to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, there is no size limit for variables. To verify this, I ran a script that doubled the string content of a variable in a loop that ran 10**7 times. It kept going for three weeks without error ,and then I got tired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be a search field size limit though. Didn't test that (yet)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 22:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-concatenated-string-variable/m-p/789601#M1296988</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-02-11T22:35:50Z</dc:date>
    </item>
  </channel>
</rss>

