<?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 How to convert/map a string key to a unique number key? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395219#M423633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to convert/map a string key to a unique number key?&lt;/P&gt;&lt;P&gt;This unique number should not change in any condition, such as belong to number of records when loading.&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>Wed, 13 Dec 2017 03:45:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-13T03:45:08Z</dc:date>
    <item>
      <title>How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395219#M423633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to convert/map a string key to a unique number key?&lt;/P&gt;&lt;P&gt;This unique number should not change in any condition, such as belong to number of records when loading.&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>Wed, 13 Dec 2017 03:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395219#M423633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T03:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395220#M423634</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;Is AutoNumber useful for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 05:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395220#M423634</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-13T05:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395221#M423635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also this one may be helpful: &lt;A href="https://community.qlik.com/thread/146395"&gt;AutoNumber() vs Auto..Hash()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 05:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395221#M423635</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-13T05:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395222#M423636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in case of reloading data with difference number of records of table, that number key will be different.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;- firstly, I load table with fromdate (1/1/2017) and todate (30/01/2017), I use Autonumber() or AutonumberHash() convert string key to unique key (unique key 1).&lt;/P&gt;&lt;P&gt;-second, I load the same table (with same data), but fromdate (15/01/2017) and todate (30/01/2017). I also use &lt;SPAN style="font-size: 13.3333px;"&gt;Autonumber() or AutonumberHash() convert string key to unique key (unique key 2).&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;=&amp;gt; the problem is unique key 1 different unique key 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395222#M423636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T07:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395223#M423637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, from here even it works&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(fromdate &amp;amp; '|' &amp;amp; todate) as [unique key]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395223#M423637</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-13T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395224#M423638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you're right, that's why I wasn't so sure if AutoNumber was going to help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember I solved something similar in Oracle DB with something like ORA_HASH..... that was ages ago, I can't remember much about if now. There is a Hash* function in Qlik but it returns a unique (and deterministic) string of characters but you're asking for numbers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm interested in finding this out as well, I'll keep looking and thinking...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't mind my asking, why is it that you have such requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS, you may have to do it outside of Qlik and then being in the table for mapping or associating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395224#M423638</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-13T07:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395225#M423639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I mean that :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;- firstly, I load table A with fromdate (1/1/2017) and todate (30/01/2017), about 1000 records, I use Autonumber() or AutonumberHash() convert string key to unique key (unique key 1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A: AutonumberHash(date, dsr, cutomer) as uniquenumber_1, sale, stock, ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;-second, I load the same table A (with same data), but fromdate (15/01/2017) and todate (30/01/2017), about 500 records. I also use &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Autonumber() or AutonumberHash() convert string key to unique key (unique key 2).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A: AutonumberHash(date, dsr, cutomer) as uniquenumber_2, sale, stock, ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;uniquenumber_1 different &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;uniquenumber_2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395225#M423639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T07:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395226#M423640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your discussion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have that problem in case my data have error or missing someday, so I have to reload just this day. Then the numberkey (generated from AutonumberHash128() function) is not matching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;PS, you may have to do it outside of Qlik and then being in the table for mapping or associating =&amp;gt; because the data is large and the number of operation much, so we can't do manual like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395226#M423640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395227#M423641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then Hash256() should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395227#M423641</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-13T07:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395228#M423642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's the last step within an application you could use one of the autonumber-functions for the key. But if you need the key during the ETL process this won't be valid in the most cases (exceptions are thinkable if you could definitely ensure the load-order and that only new values could be added but it's rather a unlikely scenario and needs some efforts to chekc the logic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this meant not mandatory that a converting from a string to a number isn't possible but it depends on the needed keys - how does they look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 08:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395228#M423642</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-12-13T08:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395229#M423643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need convert to number for performance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 10:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395229#M423643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395230#M423644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is anyway or function to map from one group of string to one &lt;SPAN style="font-size: 13.3333px;"&gt;exactly and unique number?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If there is one, I think this problem would be fixed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 10:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395230#M423644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T10:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395231#M423645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK there don't exists such a function in Qlik but it's (in general) possible to build such a functionality whereby like above mentioned it depends on how the keys look like. If are the key-parts numbers there is a real chance to get it to work - if the key-parts are strings (which really couldn't be replaced by an ID) it's rather unlikely especially because Qlik treated only values until 14-digits as number (in special cases also 15-digits) but after that it's also a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore how does the keys look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 10:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395231#M423645</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-12-13T10:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395232#M423646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then, May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * From Table2 ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * From Table1 &lt;/STRONG&gt;&lt;STRONG&gt;Where Not Exists(uniquenumber_1, uniquenumber_2);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 09:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/1395232#M423646</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-21T09:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert/map a string key to a unique number key?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/2107631#M1224413</link>
      <description>&lt;P&gt;just remeber...&lt;/P&gt;
&lt;P&gt;AutonumberHash only works into same reload app, not&amp;nbsp;&lt;SPAN&gt;across applications, because it depends also from data load order.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As Maria said (&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/10022"&gt;@JaMajka1&lt;/a&gt;), you can use Hash() but result is in string format, not a scalar&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/use-of-hash-function/m-p/1385736#M805773" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/use-of-hash-function/m-p/1385736#M805773&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 08:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-map-a-string-key-to-a-unique-number-key/m-p/2107631#M1224413</guid>
      <dc:creator>acardella</dc:creator>
      <dc:date>2023-08-21T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

