<?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/1142994#M374260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to cleanse your data in the back end to be able to do this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4267"&gt;Data Cleansing&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 17:37:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-17T17:37:58Z</dc:date>
    <item>
      <title>Merge Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142993#M374259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I would appreciate if someone would be able to help me figure this out. I will like to have just one CustName because they have the same CustNo. I wan to match/merge the two into one (Example: Instead of having the two, I want just one and to say "CitiB") and still have the same records in my straight table. Logically, I want to convert CitiB-City to CitiB since they both have the same CustNo. Please see attachment for sample .qvw file.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test_merge.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128340_test_merge.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;My final output should be:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test_merge2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128341_test_merge2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/4484"&gt;stevedark&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 16:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142993#M374259</guid>
      <dc:creator />
      <dc:date>2016-06-17T16:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142994#M374260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to cleanse your data in the back end to be able to do this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4267"&gt;Data Cleansing&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 17:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142994#M374260</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-17T17:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142995#M374261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omosalewa,&lt;/P&gt;&lt;P&gt;i agree with Sunny here that you may need some data cleansing, but as an alternative you can have a list with the mapping (CustNo and CustMergedName) for all items to be merged; And use it with the applymap function. This list must be maintained with every CustName that you want to merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important: This may not be the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you will find an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 17:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142995#M374261</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-06-17T17:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142996#M374262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Calculated Dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MinString&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128355_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 18:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142996#M374262</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-06-17T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142997#M374263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with the other comments regarding cleansing your data in the back end, but this is not difficult to fix regardless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading your main data file, only load the number and not the name, and ApplyMap on the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way only one name will be associated with each number (an arbitrary one, but at least it will only be one).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create the mapping table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Map_CustName:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAPPING LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; CustNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; CustName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM SourceFile.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use that mapping table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MainData:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; CustNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ApplyMap('Map_CustName', CustNo) as CustName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ... rest of your fields ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM SourceFile.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a full description of why this works, and more about ApplyMap, you could read up on this blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" title="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-Rows/m-p/1142997#M374263</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2016-06-20T14:55:36Z</dc:date>
    </item>
  </channel>
</rss>

