<?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: Join 2 field values to create a Primary Key? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305472#M821895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 15:20:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-27T15:20:28Z</dc:date>
    <item>
      <title>Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305467#M821890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For something like this, I have no unique primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script, how would I combine these 3 fields together to create a sort of Primary key?&lt;/P&gt;&lt;P&gt;So it is "123Test1235:45"&lt;/P&gt;&lt;P&gt;Then I would use this key to check against new data to perform an incremental load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Time&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Test123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5:45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;555&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Increment&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6:56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;555&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Test123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;4:20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305467#M821890</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305468#M821891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;column1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;amp; '|' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;column2 &amp;amp; '|' &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;column3 as Primary key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But better is:&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;autonumber(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;column1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;amp; '|' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;column2 &amp;amp; '|' &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;column3&lt;/SPAN&gt;&lt;/SPAN&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&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;Note replace column with your fieldnames&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;BR /&gt;&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;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/autonumber.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/autonumber.htm"&gt;autonumber ‒ QlikView&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305468#M821891</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2017-07-27T14:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305469#M821892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If every row is different, you could use functions like RowNo() or a simple iteration to assign a unique value to each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to compare each value, then yes, what you suggest, used in combination with AutoNumber() or similar functions will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, how would you plan to do the incremental load? If all rows are unique, will they ever be replaced?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305469#M821892</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-07-27T14:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305470#M821893</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;You may functions like RowNo() or Autonumber(Customer &amp;amp;'_'&amp;amp; Name Time) to unequally identify each record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305470#M821893</guid>
      <dc:creator>md_qlikview</dc:creator>
      <dc:date>2017-07-27T14:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305471#M821894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to concatenate Time on previous reply.&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;Autonumber(Customer &amp;amp;'_'&amp;amp; Name &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;amp;'_'&amp;amp; &lt;/SPAN&gt;Time) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305471#M821894</guid>
      <dc:creator>md_qlikview</dc:creator>
      <dc:date>2017-07-27T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305472#M821895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305472#M821895</guid>
      <dc:creator />
      <dc:date>2017-07-27T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 field values to create a Primary Key?</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305473#M821896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-field-values-to-create-a-Primary-Key/m-p/1305473#M821896</guid>
      <dc:creator />
      <dc:date>2017-07-27T15:20:37Z</dc:date>
    </item>
  </channel>
</rss>

