<?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 Concatenate the values of multiple records for one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170163#M40681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Johan,&lt;/P&gt;&lt;P&gt;I'm not very used to do aggregations in the script, but this seems a good moment to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table1:LOAD Client, ProductFROM Source; Table2:LOAD Client, If(Previous(Client) = Client, RangeSum(Peek('ProductsAcum'), -1 * Products), 1) AS ProductsAcumRESIDENT Table1ORDER BY Client; // Table previously loaded with raw data&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Mar 2011 00:05:18 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-19T00:05:18Z</dc:date>
    <item>
      <title>Concatenate the values of multiple records for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170162#M40680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to concatenate rows in one field in this way:&lt;/P&gt;&lt;P&gt;Let's say we have this table:&lt;/P&gt;&lt;P&gt;Client Product&lt;/P&gt;&lt;P&gt;1 A&lt;/P&gt;&lt;P&gt;1 B&lt;/P&gt;&lt;P&gt;2 B&lt;/P&gt;&lt;P&gt;2 C&lt;/P&gt;&lt;P&gt;2 D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to generate the following table:&lt;/P&gt;&lt;P&gt;Client Products&lt;/P&gt;&lt;P&gt;1 A - B&lt;/P&gt;&lt;P&gt;2 B - C - D&lt;/P&gt;&lt;P&gt;The amount of products per client varies.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 22:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170162#M40680</guid>
      <dc:creator />
      <dc:date>2011-03-18T22:23:42Z</dc:date>
    </item>
    <item>
      <title>Concatenate the values of multiple records for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170163#M40681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Johan,&lt;/P&gt;&lt;P&gt;I'm not very used to do aggregations in the script, but this seems a good moment to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table1:LOAD Client, ProductFROM Source; Table2:LOAD Client, If(Previous(Client) = Client, RangeSum(Peek('ProductsAcum'), -1 * Products), 1) AS ProductsAcumRESIDENT Table1ORDER BY Client; // Table previously loaded with raw data&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2011 00:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170163#M40681</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-19T00:05:18Z</dc:date>
    </item>
    <item>
      <title>Concatenate the values of multiple records for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170164#M40682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U can also use the previous tricks to concatenate the row values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Client Product&lt;/P&gt;&lt;P&gt;1 A&lt;/P&gt;&lt;P&gt;1 B&lt;/P&gt;&lt;P&gt;2 B&lt;/P&gt;&lt;P&gt;2 C&lt;/P&gt;&lt;P&gt;2 D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Client,concat(Product,'-') as NewProduct resident Tablename group by Client;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attached application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2011 03:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170164#M40682</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-03-19T03:34:38Z</dc:date>
    </item>
    <item>
      <title>Concatenate the values of multiple records for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170165#M40683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Johan,&lt;/P&gt;&lt;P&gt;It can be done by using concat() function:&lt;BR /&gt;&lt;STRONG&gt;concat(distinct Products, ' - ')&lt;BR /&gt;&lt;/STRONG&gt;You can use it either in script or on front end, whatever you prefer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2011 18:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170165#M40683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-20T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Concatenate the values of multiple records for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170166#M40684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys!&lt;/P&gt;&lt;P&gt;I like the simplicity of the concat() and group by combination!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 07:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-the-values-of-multiple-records-for-one-field/m-p/170166#M40684</guid>
      <dc:creator />
      <dc:date>2011-03-21T07:56:15Z</dc:date>
    </item>
  </channel>
</rss>

