<?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: Merging three columns into one on table load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123700#M602845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create another field with the concatenation of these 3 fields like&amp;nbsp; - CallType &amp;amp; Facility &amp;amp; Location. You can use a separator as well if you need - &lt;SPAN style="font-size: 13.3333px;"&gt; CallType &amp;amp; '-' &amp;amp; Facility &amp;amp; '-' &amp;amp; Location&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2018 14:26:51 GMT</pubDate>
    <dc:creator>neelamsaroha157</dc:creator>
    <dc:date>2018-09-13T14:26:51Z</dc:date>
    <item>
      <title>Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123699#M602844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to merge three location columns, (which are loaded into the table as per below):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213434_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;giving me a table which looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/213438_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;....into a single location column to just give me something that looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/213440_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I'm sure that it's a simple line of script...but I can't seem to get it to work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 03:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123699#M602844</guid>
      <dc:creator>conwayro</dc:creator>
      <dc:date>2018-09-13T03:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123700#M602845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create another field with the concatenation of these 3 fields like&amp;nbsp; - CallType &amp;amp; Facility &amp;amp; Location. You can use a separator as well if you need - &lt;SPAN style="font-size: 13.3333px;"&gt; CallType &amp;amp; '-' &amp;amp; Facility &amp;amp; '-' &amp;amp; Location&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123700#M602845</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-13T14:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123701#M602846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;PurgeChar(Location_Gympie &amp;amp; '$$$' &amp;amp; Location_NGH &amp;amp; ' $$$' &amp;amp; Location_SCUH, '$') AS Location&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the $ character cannot be part of any of those three fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123701#M602846</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-09-13T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123702#M602847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;We can also do this too right? &lt;/P&gt;&lt;P&gt;Then combining the 3 fields to get a new column (referring to Neelam's expr) Try below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, CallType&amp;amp;'-'&amp;amp;Facility&amp;amp;'-'&amp;amp;Location AS NewFacilityLocation;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD CallType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trim(LocationGympie&amp;amp;LocationNGH&amp;amp;LocationSCUH) AS Location&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123702#M602847</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-13T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123703#M602848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/284812"&gt;conwayro&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;TableMETCalls:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hospital as Facility&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; , [Call Type] as CallType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; , IF(Hospital = 'Gympie', [Location(Gympie)],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; IF(Hospital = 'Nambour', [Location(NGH)],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; IF(Hospital = 'SCUH', [Location(SCUH)], 'Unknown'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AS Location&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM ....................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I see there is a pattern of which column data needs to be selected based on hospital name. May be you can take advantage of that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Rajiv.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 17:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123703#M602848</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-13T17:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123704#M602849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajiv,&lt;/P&gt;&lt;P&gt;The data he provided was limited what if there are multiple facilities, in such cases you have to write big if statements for each facility name right. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 17:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123704#M602849</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-13T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123705#M602850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/98547"&gt;vishsaggi&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, if there are multiple facilities (too many to check) than it would better to create a mapping table for the same and use applymap in load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 17:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123705#M602850</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-13T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123706#M602851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the input...the concatenate suggestion worked a treat!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 01:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123706#M602851</guid>
      <dc:creator>conwayro</dc:creator>
      <dc:date>2018-09-14T01:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merging three columns into one on table load</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123707#M602852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do that, the result will have extra dashes that probably you don't want, for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASU&lt;STRONG style=": ; color: #ff0000;"&gt;--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;--&lt;/STRONG&gt;3A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea with the PurgeChar is adding an extra step to what you are proposing and remove those characters before storing the value into the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-three-columns-into-one-on-table-load/m-p/123707#M602852</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-09-14T08:04:00Z</dc:date>
    </item>
  </channel>
</rss>

