<?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: mapping table to create a key? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/mapping-table-to-create-a-key/m-p/441980#M164772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Autonumber(ID1&amp;amp;'_'&amp;amp;ID2) as CombinedID would create identical numbers for each ID1-ID2 combination during the same reload. It doesn't matter if you use it in different tables. You would still get the same values for the same combinations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as all autonumbers are calculated in the same reload you get the same numbers. &lt;STRONG&gt;But&lt;/STRONG&gt; if you store a table with calculated autonumbers in a qvd and load this in a later reload you can get numbers that are different from the autonumbers calculated during that reload. Autonumbers are not unique across reloads. If you need that you can try using the hashXXX functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 08:43:48 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-05-09T08:43:48Z</dc:date>
    <item>
      <title>mapping table to create a key?</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-table-to-create-a-key/m-p/441979#M164771</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;I am trying to anonomise data for testing purposes by replacing it with an autonumber but as expected I am having some problems when using this on key fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt; Original Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #800000;"&gt;ID1&lt;/SPAN&gt;&amp;amp;'_'&amp;amp;&lt;SPAN style="color: #800000;"&gt;ID2&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CombinedID&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace with Autonumber&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style=": ; color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AutoNumberHash&lt;/P&gt;(&lt;SPAN style="color: #800000;"&gt;ID1&lt;/SPAN&gt;&amp;amp;'_'&amp;amp;&lt;SPAN style="color: #800000;"&gt;ID2&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CombinedID&lt;/SPAN&gt;, &lt;P&gt;&lt;/P&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The problem with this is that&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CombinedID&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;is used in more that one table, so using autonumber breaks the links.&amp;nbsp; I think I mapping table could be used, but I'm not sure how to go about this - any advice would be mych appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;﻿Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 08:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-table-to-create-a-key/m-p/441979#M164771</guid>
      <dc:creator />
      <dc:date>2013-05-09T08:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: mapping table to create a key?</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-table-to-create-a-key/m-p/441980#M164772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Autonumber(ID1&amp;amp;'_'&amp;amp;ID2) as CombinedID would create identical numbers for each ID1-ID2 combination during the same reload. It doesn't matter if you use it in different tables. You would still get the same values for the same combinations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as all autonumbers are calculated in the same reload you get the same numbers. &lt;STRONG&gt;But&lt;/STRONG&gt; if you store a table with calculated autonumbers in a qvd and load this in a later reload you can get numbers that are different from the autonumbers calculated during that reload. Autonumbers are not unique across reloads. If you need that you can try using the hashXXX functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 08:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-table-to-create-a-key/m-p/441980#M164772</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-09T08:43:48Z</dc:date>
    </item>
  </channel>
</rss>

