<?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 Generate same key in different tables based on 2 fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-same-key-in-different-tables-based-on-2-fields/m-p/556391#M689617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table1 has fields T1.FieldA, T1.FieldB, Count1&lt;/P&gt;&lt;P&gt;Table2 has fields T2.FieldA, T2.FieldB, Count2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to keep the tables separate because I don't want the counts to inflate, but how do I join the two tables on fields A and B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could create a link table, but I would prefer to make a compound key.&amp;nbsp; Since one of these fields is text, I was wondering if there is some function that will translate the combined FieldA+FieldB to the exact same integer in both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 15:29:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-31T15:29:22Z</dc:date>
    <item>
      <title>Generate same key in different tables based on 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-same-key-in-different-tables-based-on-2-fields/m-p/556391#M689617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table1 has fields T1.FieldA, T1.FieldB, Count1&lt;/P&gt;&lt;P&gt;Table2 has fields T2.FieldA, T2.FieldB, Count2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to keep the tables separate because I don't want the counts to inflate, but how do I join the two tables on fields A and B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could create a link table, but I would prefer to make a compound key.&amp;nbsp; Since one of these fields is text, I was wondering if there is some function that will translate the combined FieldA+FieldB to the exact same integer in both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 15:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-same-key-in-different-tables-based-on-2-fields/m-p/556391#M689617</guid>
      <dc:creator />
      <dc:date>2013-10-31T15:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Generate same key in different tables based on 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-same-key-in-different-tables-based-on-2-fields/m-p/556392#M689618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;autonumberhash128(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;T1.FieldA, T1.FieldB&lt;/SPAN&gt;) as Key&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;autonumberhash128(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;T2.FieldA, T2.FieldB&lt;/SPAN&gt;) as Key&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 15:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-same-key-in-different-tables-based-on-2-fields/m-p/556392#M689618</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-31T15:36:50Z</dc:date>
    </item>
  </channel>
</rss>

