<?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: Merge cells in a row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650851#M1078975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid my englisch isn't really better ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right in this case the sorting won't be correct - it needed an additionally load-step to create a numeric sorting-field for concat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Row, TEST1, TEST2, TEST3, TEST4, TEST5&lt;/P&gt;&lt;P&gt;Row1, Y, Y, N, Y, N&lt;/P&gt;&lt;P&gt;Row2, N, N, N, Y, N&lt;/P&gt;&lt;P&gt;Row3, Y, Y, N, Y, Y&lt;/P&gt;&lt;P&gt;Row4, N, Y, N, Y, N&lt;/P&gt;&lt;P&gt;Row5, N, Y, Y, Y, N&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;CrossTable(Column, [Yes/No], 1) Load * Resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2b:&lt;/P&gt;&lt;P&gt;Load Row, [Yes/No], num(KeepChar(Column, '0123456789')) as ConcatSorting Resident t2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t3:&lt;/P&gt;&lt;P&gt;Load Row, concat([Yes/No], '', ConcatSorting) as Result Resident t2b Group By Row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables t1, t2, t2b;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 12:17:03 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-07-10T12:17:03Z</dc:date>
    <item>
      <title>Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650846#M1078968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to merge several cells in a row into one cell, is this possible? I know it can be done by writing out the column names with &amp;amp; between them but this is a solution I'm trying to avoid due to the number of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my data looks something like the below with Result as the ultimate aim:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 448px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="TEXT-ALIGN: center;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center;" width="64"&gt;TEST1&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none;" width="64"&gt;TEST2&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none;" width="64"&gt;TEST3&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none;" width="64"&gt;TEST4&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none;" width="64"&gt;TEST5&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none;" width="64"&gt;RESULT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="TEXT-ALIGN: center;"&gt;Row1&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;YYNYN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="TEXT-ALIGN: center; BORDER-TOP: medium none;"&gt;Row2&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;NNNYN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="TEXT-ALIGN: center; BORDER-TOP: medium none;"&gt;Row3&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;YYNYY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="TEXT-ALIGN: center; BORDER-TOP: medium none;"&gt;Row4&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;NYNYN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="TEXT-ALIGN: center; BORDER-TOP: medium none;"&gt;Row5&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BORDER-TOP: medium none;"&gt;NYYYN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to pick up all cells in a row with a column name beginning with TEST for example and merge them all together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do this in the LOAD script also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650846#M1078968</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650847#M1078969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your table is a cross table which is rather unsuitable for many cases. You could count the fields per fieldcount() and create in a nested loop per fieldname() to reach such a result - but this is quite complicated and with a large table surely not very performant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better would be to transform your table per crosstable in a "normal" table und use then concat() as aggregation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Row, TEST1, TEST2, TEST3, TEST4, TEST5&lt;/P&gt;&lt;P&gt;Row1, Y, Y, N, Y, N&lt;/P&gt;&lt;P&gt;Row2, N, N, N, Y, N&lt;/P&gt;&lt;P&gt;Row3, Y, Y, N, Y, Y&lt;/P&gt;&lt;P&gt;Row4, N, Y, N, Y, N&lt;/P&gt;&lt;P&gt;Row5, N, Y, Y, Y, N&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;CrossTable(Column, [Yes/No], 1) Load * Resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t3:&lt;/P&gt;&lt;P&gt;Load Row, concat([Yes/No], '') as Result Resident t2 Group By Row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables t1, t2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650847#M1078969</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-10T11:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650848#M1078971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/119755"&gt;Concatenate columns on the basis of 'IND%'&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650848#M1078971</guid>
      <dc:creator />
      <dc:date>2014-07-10T11:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650849#M1078973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Marcus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably should have provided a better example as my table isn't a crosstable. The table in question has millions of rows along with 50+ columns which includes these "Y/N" columns which are the result of tests applied before the data is uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done is give all of these result columns the same prefix, TEST, so that they can easily be identified. I was hoping to concatenate all of these columns into one column so that I can apply an additional check on the data to get a master result column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if this is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've found online it seems that using &amp;amp; between the column names is the only way to go about this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650849#M1078973</guid>
      <dc:creator />
      <dc:date>2014-07-10T11:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650850#M1078974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Marcus.&lt;/P&gt;&lt;P&gt;This solution doesn't work properly, because sorted concatenation isn't supported:&lt;/P&gt;&lt;P&gt;The result of "Row1"&amp;nbsp; must be "YYNYN", but your script "NNYYY".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but my english so so&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650850#M1078974</guid>
      <dc:creator />
      <dc:date>2014-07-10T11:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650851#M1078975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid my englisch isn't really better ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right in this case the sorting won't be correct - it needed an additionally load-step to create a numeric sorting-field for concat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Row, TEST1, TEST2, TEST3, TEST4, TEST5&lt;/P&gt;&lt;P&gt;Row1, Y, Y, N, Y, N&lt;/P&gt;&lt;P&gt;Row2, N, N, N, Y, N&lt;/P&gt;&lt;P&gt;Row3, Y, Y, N, Y, Y&lt;/P&gt;&lt;P&gt;Row4, N, Y, N, Y, N&lt;/P&gt;&lt;P&gt;Row5, N, Y, Y, Y, N&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;CrossTable(Column, [Yes/No], 1) Load * Resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2b:&lt;/P&gt;&lt;P&gt;Load Row, [Yes/No], num(KeepChar(Column, '0123456789')) as ConcatSorting Resident t2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t3:&lt;/P&gt;&lt;P&gt;Load Row, concat([Yes/No], '', ConcatSorting) as Result Resident t2b Group By Row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables t1, t2, t2b;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 12:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650851#M1078975</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-10T12:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650852#M1078976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent work Alexander! That script worked a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to yourself and Marcus for picking this up!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 12:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650852#M1078976</guid>
      <dc:creator />
      <dc:date>2014-07-10T12:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650853#M1078977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try simply both approaches. You could take this one what is faster or fit better to your data-model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 12:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650853#M1078977</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-10T12:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cells in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650854#M1078978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 18:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-cells-in-a-row/m-p/650854#M1078978</guid>
      <dc:creator />
      <dc:date>2014-07-10T18:58:33Z</dc:date>
    </item>
  </channel>
</rss>

