<?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: Joining / Merging / Concatenating a field in the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418885#M1156748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If in a record only one of the two fields has a value you can concatenate them:&lt;/P&gt;&lt;P&gt;[Company Departure] &amp;amp; [Company Arrival] AS Company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you'll have to load the departures and arrivals separately in two loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD Town, City, Departure, Arrival,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Company Departure] AS Company&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;from &lt;EM&gt;...somewhere...&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;where len(trim(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[Company Departure]&lt;/SPAN&gt;))&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD Town, City, Departure, Arrival,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Company Arrival] AS Company&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;from &lt;EM&gt;...somewhere...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;where len(trim(&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[Company &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Arrival&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;))&amp;gt;0;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 14:32:51 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-07T14:32:51Z</dc:date>
    <item>
      <title>Joining / Merging / Concatenating a field in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418884#M1156747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon Qlikview community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this is an easy one to solve. I have a table with several fields in and two of them hold simular data. I would like to merge these two fields together so they are one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Town&lt;/P&gt;&lt;P&gt;City&lt;/P&gt;&lt;P&gt;Departure&lt;/P&gt;&lt;P&gt;Arrival&lt;/P&gt;&lt;P&gt;Company Departure&lt;/P&gt;&lt;P&gt;Company Arrival&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like Company Departure and Company Arrival as Company. so I thought it would be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TravelPlan:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Town,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;Departure,&lt;/P&gt;&lt;P&gt;Arrival,&lt;/P&gt;&lt;P&gt;Company Departure AS Company,&lt;/P&gt;&lt;P&gt;Company Arrival AS Company&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM...&lt;/P&gt;&lt;P&gt;But that did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418884#M1156747</guid>
      <dc:creator />
      <dc:date>2013-03-07T14:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Joining / Merging / Concatenating a field in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418885#M1156748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If in a record only one of the two fields has a value you can concatenate them:&lt;/P&gt;&lt;P&gt;[Company Departure] &amp;amp; [Company Arrival] AS Company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you'll have to load the departures and arrivals separately in two loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD Town, City, Departure, Arrival,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Company Departure] AS Company&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;from &lt;EM&gt;...somewhere...&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;where len(trim(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[Company Departure]&lt;/SPAN&gt;))&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD Town, City, Departure, Arrival,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Company Arrival] AS Company&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;from &lt;EM&gt;...somewhere...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;where len(trim(&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[Company &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Arrival&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;))&amp;gt;0;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418885#M1156748</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-07T14:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Joining / Merging / Concatenating a field in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418886#M1156749</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;&lt;/P&gt;&lt;P&gt;You should not give same name for two fields in a table, it throws an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TravelPlan:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Town,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;Departure,&lt;/P&gt;&lt;P&gt;Arrival,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Company Departure AS Company,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Company Arrival AS Company&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can give two different names for this two columns.&amp;nbsp; If &lt;STRONG&gt;Company &lt;/STRONG&gt;&lt;STRONG&gt;Departure &lt;/STRONG&gt;and &lt;BR /&gt;&lt;STRONG&gt;Company Arrival &lt;/STRONG&gt;holds same data then there is no need of loading two columns, you can just load a single column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418886#M1156749</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-07T14:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Joining / Merging / Concatenating a field in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418887#M1156750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert, That did the trick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 11:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418887#M1156750</guid>
      <dc:creator />
      <dc:date>2013-03-08T11:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Joining / Merging / Concatenating a field in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418888#M1156751</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 loaded two tables. inbetween 2 tables i have written "add". Now i got combination of 2 fields data.&lt;/P&gt;&lt;P&gt;Is it right way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 08:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418888#M1156751</guid>
      <dc:creator>tulasiram_bitra</dc:creator>
      <dc:date>2015-12-11T08:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Joining / Merging / Concatenating a field in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418889#M1156752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you create a new thread and attach sample data/script and your expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 02:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Merging-Concatenating-a-field-in-the-same-table/m-p/418889#M1156752</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-12-14T02:40:09Z</dc:date>
    </item>
  </channel>
</rss>

