<?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 Merge rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238177#M89117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Karl.&lt;/P&gt;&lt;P&gt;But i am still a novice compared to you and the other big guns in qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 May 2010 18:20:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-12T18:20:12Z</dc:date>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238168#M89108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;ID, SEQ, NAME&lt;BR /&gt;1,1,A&lt;BR /&gt;1,2,A&lt;BR /&gt;1,3,A&lt;BR /&gt;1,4,A&lt;BR /&gt;1,5,A&lt;BR /&gt;2,1,B&lt;BR /&gt;2,2,B&lt;BR /&gt;2,3,B&lt;BR /&gt;2,4,B&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is it possible to merge the rows with same ID together following the sequence column? The result should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;ID, MergedName&lt;BR /&gt;1, A1A2A3A4A5&lt;BR /&gt;2, B1B2B3B4&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 03:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238168#M89108</guid>
      <dc:creator />
      <dc:date>2010-05-12T03:09:59Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238169#M89109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a possible solution.&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 04:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238169#M89109</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-05-12T04:18:31Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238170#M89110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID, CONCAT(NAME&amp;amp;SEQ) as combined group by ID;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, SEQ, NAME&lt;/P&gt;&lt;P&gt;1,1,A&lt;/P&gt;&lt;P&gt;1,2,A&lt;/P&gt;&lt;P&gt;1,3,A&lt;/P&gt;&lt;P&gt;1,4,A&lt;/P&gt;&lt;P&gt;1,5,A&lt;/P&gt;&lt;P&gt;2,1,B&lt;/P&gt;&lt;P&gt;2,2,B&lt;/P&gt;&lt;P&gt;2,3,B&lt;/P&gt;&lt;P&gt;2,4,B&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 06:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238170#M89110</guid>
      <dc:creator />
      <dc:date>2010-05-12T06:54:51Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238171#M89111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID, CONCAT(NAME&amp;amp;SEQ) as combined group by ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, SEQ, NAME&lt;/P&gt;&lt;P&gt;1,1,A&lt;/P&gt;&lt;P&gt;1,2,A&lt;/P&gt;&lt;P&gt;1,3,A&lt;/P&gt;&lt;P&gt;1,4,A&lt;/P&gt;&lt;P&gt;1,5,A&lt;/P&gt;&lt;P&gt;2,1,B&lt;/P&gt;&lt;P&gt;2,2,B&lt;/P&gt;&lt;P&gt;2,3,B&lt;/P&gt;&lt;P&gt;2,4,B&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used a precedent load(ie the first load statement in the above code) and concatenated SEQ and NAME by grouping them by ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 06:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238171#M89111</guid>
      <dc:creator />
      <dc:date>2010-05-12T06:59:42Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238172#M89112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;Sorry that I posted the wrong sample data... it should 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;&amp;lt;pre&amp;gt;ID, SEQ, NAME&lt;BR /&gt;1,1,AA&lt;BR /&gt;1,2,AB&lt;BR /&gt;1,3,AC&lt;BR /&gt;1,4,AD&lt;BR /&gt;1,5,AE&lt;BR /&gt;2,4,BD&lt;BR /&gt;2,3,BC&lt;BR /&gt;2,2,BB&lt;BR /&gt;2,1,BA&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;expected result:&lt;BR /&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;ID, NAME&lt;BR /&gt;1, AAABACADAE&lt;BR /&gt;2, BABBBCBD&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;the sequence number shouldn't be inside the Name... sorry for the mistake.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 08:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238172#M89112</guid>
      <dc:creator />
      <dc:date>2010-05-12T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238173#M89113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tauqeer,&lt;/P&gt;&lt;P&gt;Tried this method, but for some reason, it is not working correctly for some data (not concatenated in the sequence) I hope there is a method where I can force it to concatenate following the given sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 09:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238173#M89113</guid>
      <dc:creator />
      <dc:date>2010-05-12T09:00:19Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238174#M89114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khim,&lt;/P&gt;&lt;P&gt;The Solution given by Tauqueer is correct. It works fine in my system. for your new requirement or set of data, what you have to add is in the precedent load statement just add this code instead of the one which tauqueer gave.&lt;/P&gt;&lt;P&gt;Load ID, concat(name) group by ID;&lt;/P&gt;&lt;P&gt;load * from table.xls;&lt;/P&gt;&lt;P&gt;The code which Tauqueer gave was corect for the old set of data you gave and hope this works for your new set. Hope this helps you..&lt;/P&gt;&lt;P&gt;Thanks Joseph.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 09:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238174#M89114</guid>
      <dc:creator />
      <dc:date>2010-05-12T09:42:40Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238175#M89115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi khim,&lt;/P&gt;&lt;P&gt;try the following code,it should work as per ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, SEQ, NAME&lt;/P&gt;&lt;P&gt;1,1,AA&lt;/P&gt;&lt;P&gt;1,2,AB&lt;/P&gt;&lt;P&gt;1,3,AC&lt;/P&gt;&lt;P&gt;1,4,AD&lt;/P&gt;&lt;P&gt;1,5,AE&lt;/P&gt;&lt;P&gt;2,4,BD&lt;/P&gt;&lt;P&gt;2,3,BC&lt;/P&gt;&lt;P&gt;2,2,BB&lt;/P&gt;&lt;P&gt;2,1,BA&lt;/P&gt;&lt;P&gt;] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;noconcatenate load * resident tab1 order by ID,SEQ;&lt;/P&gt;&lt;P&gt;drop table tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab3:&lt;/P&gt;&lt;P&gt;LOAD ID,concat(NAME) as combined resident tab2 group by ID;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 10:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238175#M89115</guid>
      <dc:creator />
      <dc:date>2010-05-12T10:37:49Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238176#M89116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good solution, tauqueer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 15:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238176#M89116</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-05-12T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238177#M89117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Karl.&lt;/P&gt;&lt;P&gt;But i am still a novice compared to you and the other big guns in qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 18:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238177#M89117</guid>
      <dc:creator />
      <dc:date>2010-05-12T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238178#M89118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The concat() function already supports giving it a sequence, so there's no need for additional steps for the sort.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD ID,concat(NAME,'',SEQ) as NAME&lt;BR /&gt;INLINE [&lt;BR /&gt;ID, SEQ, NAME&lt;BR /&gt;1,1,AA&lt;BR /&gt;1,2,AB&lt;BR /&gt;1,3,AC&lt;BR /&gt;1,4,AD&lt;BR /&gt;1,5,AE&lt;BR /&gt;2,4,BD&lt;BR /&gt;2,3,BC&lt;BR /&gt;2,2,BB&lt;BR /&gt;2,1,BA&lt;BR /&gt;]&lt;BR /&gt;GROUP BY ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 01:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238178#M89118</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-13T01:00:09Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238179#M89119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tauqueer,&lt;/P&gt;&lt;P&gt;I tried this method, but for some unknown reason, it doesn't work correctly for my real data. The merged result is still not in the sequential format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 02:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238179#M89119</guid>
      <dc:creator />
      <dc:date>2010-05-13T02:43:59Z</dc:date>
    </item>
    <item>
      <title>Merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238180#M89120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I edited Karl's script a bit and it is working fine now! &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt; Thanks Karl for the code!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for all the suggestions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 02:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-rows/m-p/238180#M89120</guid>
      <dc:creator />
      <dc:date>2010-05-13T02:46:29Z</dc:date>
    </item>
  </channel>
</rss>

