<?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: Concat() not working in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476315#M1148640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; ITEM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(ITEM,',') as CONCAT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT TEMP;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 07:06:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-17T07:06:39Z</dc:date>
    <item>
      <title>Concat() not working in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476311#M1148636</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 small table with one column and about ten values that I want to concatenate into a single string in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT DISTINCT item FROM table...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET itemString = Concat(item, ',');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the resulting variable is empty (actually I do not even see it when looking at the variable editor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I define the variable in the variable editor (as = Concat(item, ',')), it works fine and I get a concatenated list of all values in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is it not working in the script? Is there any other way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 06:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476311#M1148636</guid>
      <dc:creator />
      <dc:date>2013-06-17T06:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concat() not working in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476312#M1148637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LET &lt;/SPAN&gt;&lt;SPAN style="color: #999999;"&gt;itemString&lt;/SPAN&gt; = &lt;SPAN style="color: #0000ff;"&gt;Concat&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;peek&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ITEM&lt;/SPAN&gt;), ',');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Ariel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 06:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476312#M1148637</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2013-06-17T06:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Concat() not working in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476313#M1148638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply use '&amp;amp;' symbol for concat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 06:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476313#M1148638</guid>
      <dc:creator />
      <dc:date>2013-06-17T06:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concat() not working in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476314#M1148639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below script it's very helpful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD Concat(item,',') as ConcatItem;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vitemString=Peek('ConcatItem',0,'Temp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your Script see below syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD Concat(item,',') as item;&lt;/P&gt;&lt;P&gt;SQL SELECT DISTINCT item FROM table...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET itemString = Peek('item',0,'Temp');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 07:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476314#M1148639</guid>
      <dc:creator>kumarnatarajan</dc:creator>
      <dc:date>2013-06-17T07:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Concat() not working in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476315#M1148640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; ITEM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(ITEM,',') as CONCAT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT TEMP;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 07:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476315#M1148640</guid>
      <dc:creator />
      <dc:date>2013-06-17T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Concat() not working in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476316#M1148641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I found a similar solution in the mean time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Concat(item, ',') AS ItemConcat;&lt;/P&gt;&lt;P&gt;SQL SELECT item from table...;&lt;/P&gt;&lt;P&gt;LET itemString = peek('ItemConcat');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 07:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-not-working-in-the-script/m-p/476316#M1148641</guid>
      <dc:creator />
      <dc:date>2013-06-17T07:15:42Z</dc:date>
    </item>
  </channel>
</rss>

