<?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 rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861819#M301630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on your example, (assuming there is value only in either of 3-support/onemore fields )&lt;/P&gt;&lt;P&gt;1. first load distinct Name in a Table1 from from your table&lt;/P&gt;&lt;P&gt;2. left join Table 1, load Name, 3-support from your table where len(trim(3-support))&amp;gt;=1&lt;/P&gt;&lt;P&gt;2. left join Table 1, load Name, onemore from your table where len(trim(onemore))&amp;gt;=1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 21:31:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-06T21:31:22Z</dc:date>
    <item>
      <title>merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861818#M301629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below table &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 335px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" width="207"&gt;3-support&lt;/TD&gt;&lt;TD width="64"&gt;onemore&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;a&lt;/TD&gt;&lt;TD&gt;table2-support3&lt;/TD&gt;&lt;TD&gt;er&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;n&lt;/TD&gt;&lt;TD&gt;e&lt;/TD&gt;&lt;TD&gt;rt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;c&lt;/TD&gt;&lt;TD&gt;y&lt;/TD&gt;&lt;TD&gt;ty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;H5&gt;&lt;SPAN style="color: #ff0000;"&gt;d&lt;/SPAN&gt;&lt;/H5&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;no&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;oh&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to merge the rows based on the Name for e.g.&lt;/P&gt;&lt;P&gt;The last 2 rows should be merged in one row as&lt;/P&gt;&lt;P&gt;d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can someone please help understand how I can accomplish this? I tried doing a self join but that didn't get me the results I want. Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861818#M301629</guid>
      <dc:creator />
      <dc:date>2015-04-06T21:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861819#M301630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on your example, (assuming there is value only in either of 3-support/onemore fields )&lt;/P&gt;&lt;P&gt;1. first load distinct Name in a Table1 from from your table&lt;/P&gt;&lt;P&gt;2. left join Table 1, load Name, 3-support from your table where len(trim(3-support))&amp;gt;=1&lt;/P&gt;&lt;P&gt;2. left join Table 1, load Name, onemore from your table where len(trim(onemore))&amp;gt;=1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861819#M301630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T21:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861820#M301631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use distinct on all loads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861820#M301631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861821#M301632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try group by name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;source:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Name, 3-support, onemore&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a, table2-support3, er&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;n, e, rt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c, y, ty&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;d,,no&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;d, oh,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Name, MaxString([3-support]) as [3-support], MaxString(onemore) as onemore&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by Name;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table source;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 22:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861821#M301632</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-06T22:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861822#M301633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response. This is what I tried:&lt;/P&gt;&lt;P&gt;join1:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [3-support],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onemore&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Temp\joinTest2.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(join1)&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [3-support]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Temp\joinTest2.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)where len(trim([3-support]))&amp;gt;=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (join1)&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onemore&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Temp\joinTest2.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)where len(trim(onemore))&amp;gt;=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I pull the rows into a table box, should I now see only 1 row replacing the 2 rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so then I don't see that happening. Trying to figure out what I am missing.&amp;nbsp; Your guidance is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861822#M301633</guid>
      <dc:creator />
      <dc:date>2015-04-07T15:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861823#M301634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo.&lt;/P&gt;&lt;P&gt;That worked! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861823#M301634</guid>
      <dc:creator />
      <dc:date>2015-04-07T15:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861824#M301635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please mark the helpful and correct answers (to close the discussion), thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861824#M301635</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-07T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861825#M301636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Surely will. I am trying to apply the same solution to a larger data set&amp;nbsp; of approx 60K rows that I need to create the unique rows for and am running into errors there. Hence the delay in marking the answer as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861825#M301636</guid>
      <dc:creator />
      <dc:date>2015-04-07T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861826#M301637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a further question:&lt;/P&gt;&lt;P&gt;For my actual datasheet, I am doing a if(Match) during the load to load entries from one column into different new columns based on a condition. For e.g.:&lt;/P&gt;&lt;P&gt;if(Match([role],'First Call Support Contact'),[full name]) as [First Call Support Contact Full Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Match([role],'First Call Support Contact'),eMail) as [First Call Support Contact Email]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if I drop the source table I lose that data. How can I address that issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861826#M301637</guid>
      <dc:creator />
      <dc:date>2015-04-07T16:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861827#M301638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you open a new discussion with some data? &lt;/P&gt;&lt;P&gt;I don't understand your last question.&lt;/P&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;if(role = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;First Call Support Contact', [full name]) as [First Call Support Contact Full Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861827#M301638</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-07T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows</title>
      <link>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861828#M301639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going back to the example you used for the solution, you did a load inline for source table. I am not doing a load inline but instead am loading from a spreadsheet. And during the load I am doing a if(match) to get data into separate columns. so based on your solution, if I drop the source table at the end,&amp;nbsp; won't I lose the new columns that I am creating during my initial load of the source table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this is getting complicated. I will start a new discussing but it will be an extension of this post.Thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/merge-rows/m-p/861828#M301639</guid>
      <dc:creator />
      <dc:date>2015-04-07T16:53:53Z</dc:date>
    </item>
  </channel>
</rss>

