<?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 Concat in load statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293337#M1201388</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;I'm using this as a reference: http://community.qlik.com/forums/p/32145/124107.aspx#124107&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do something similar, where have have ID1 and ID2, where by themselves are not unique, but together it creates a unique ID. I'd like to concatenate the two fields together to create a unique ID in the load statement. Here's the code I have so far&lt;/P&gt;&lt;P&gt;LOAD @1 as [Customer Entity],&lt;BR /&gt; @2 as [Staff Entity],&lt;BR /&gt; @3 as [Revision No],&lt;BR /&gt; @4 as [Last Name],&lt;BR /&gt; @5 as [First Name],&lt;BR /&gt; @6 as [Entity Qualifier],&lt;BR /&gt; @7 as Registered,&lt;BR /&gt; @8 as [Provider Type],&lt;BR /&gt; text(trim(@9)) as [Code Key],&lt;BR /&gt; concat(total @1 &amp;amp;@2, ';') as [Special ID]&lt;BR /&gt;FROM [C:\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this loads, the results is "(internal error)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point out my error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 19:00:19 GMT</pubDate>
    <dc:creator>kkorynta</dc:creator>
    <dc:date>2010-12-10T19:00:19Z</dc:date>
    <item>
      <title>Concat in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293337#M1201388</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;I'm using this as a reference: http://community.qlik.com/forums/p/32145/124107.aspx#124107&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do something similar, where have have ID1 and ID2, where by themselves are not unique, but together it creates a unique ID. I'd like to concatenate the two fields together to create a unique ID in the load statement. Here's the code I have so far&lt;/P&gt;&lt;P&gt;LOAD @1 as [Customer Entity],&lt;BR /&gt; @2 as [Staff Entity],&lt;BR /&gt; @3 as [Revision No],&lt;BR /&gt; @4 as [Last Name],&lt;BR /&gt; @5 as [First Name],&lt;BR /&gt; @6 as [Entity Qualifier],&lt;BR /&gt; @7 as Registered,&lt;BR /&gt; @8 as [Provider Type],&lt;BR /&gt; text(trim(@9)) as [Code Key],&lt;BR /&gt; concat(total @1 &amp;amp;@2, ';') as [Special ID]&lt;BR /&gt;FROM [C:\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this loads, the results is "(internal error)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point out my error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 19:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293337#M1201388</guid>
      <dc:creator>kkorynta</dc:creator>
      <dc:date>2010-12-10T19:00:19Z</dc:date>
    </item>
    <item>
      <title>Concat in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293338#M1201389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, notice the concat function will only work in the context of the GUI. If you are working in the script you can concatenate the values as follows:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;@1 &amp;amp; '-' &amp;amp; @2 as KeyField&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;However, I would suggest to use some of the autonumber flavors in order to have the ID's represented as integers instead of linking through text values.&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;autonumber(@1 &amp;amp; '-' &amp;amp; @2) as KeyField&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;autonumberhash256(@1 , @2) as KeyField&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 19:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293338#M1201389</guid>
      <dc:creator />
      <dc:date>2010-12-10T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Concat in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293339#M1201390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of concatenation is that article referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 19:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293339#M1201390</guid>
      <dc:creator>kkorynta</dc:creator>
      <dc:date>2010-12-10T19:10:25Z</dc:date>
    </item>
    <item>
      <title>Concat in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293340#M1201391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The concat function will retrieve and string with the resulting concatenation of the values within a field. For example:&lt;/P&gt;&lt;P&gt;Let's say you have a field named Field1 with values 1,2,3,4.&lt;/P&gt;&lt;P&gt;If you use the function as follows:&lt;/P&gt;&lt;P&gt;concat(Field1,'?')&lt;/P&gt;&lt;P&gt;It will retrieve the following string:&lt;/P&gt;&lt;P&gt;"1?2?3?4"&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 20:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-in-load-statement/m-p/293340#M1201391</guid>
      <dc:creator />
      <dc:date>2010-12-10T20:01:32Z</dc:date>
    </item>
  </channel>
</rss>

