<?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: Problem interpreting 16 digit Hex key. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719584#M1055566</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;I have no problem reading a 16 digit hex number using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num#(HexVal, '(hex)') As T1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached. QV11.2 SR7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH &lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 06:43:57 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-10-14T06:43:57Z</dc:date>
    <item>
      <title>Problem interpreting 16 digit Hex key.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719583#M1055565</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;Can anyone suggest how to work with a key that is a 16 digit HEX number?&amp;nbsp; I don't need to do any math with it, just use it as a key. My problem is that if I load it as a text string it doesn't sort correctly in charts and tables.&amp;nbsp; In Excel, alphanumeric hex strings sort in numerical hex order but in QV they don't appear to!&amp;nbsp; Can anyone clarify how QV sorts alphanumeric strings?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative I tried to interpret it as a hex number at load time using Num#(HexKey,'(hex)') AS HexKey.&amp;nbsp; It didn't cause any errors but something was not right as my straight table that uses dimensions from two tables linked by this key generated radically different results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read elsewhere in this Community that QlikView cannot interpret strings longer than 14 digits and suspect that this might be the cause.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Can anyone confirm exactly what the limit is for the latest version of QV11?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I did a bit of testing using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Num#(Right(HexKey,14),'(hex)') AS HexKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And discovered that I had to go down to 13 to make it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm happy with string or hex interpretation, I just need it to work reliably as a key and sort in numerical hex order.&amp;nbsp; Any advice would be much appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 06:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719583#M1055565</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2014-10-14T06:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem interpreting 16 digit Hex key.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719584#M1055566</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;I have no problem reading a 16 digit hex number using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num#(HexVal, '(hex)') As T1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached. QV11.2 SR7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH &lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 06:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719584#M1055566</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-14T06:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem interpreting 16 digit Hex key.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719585#M1055568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num#(HexVal,'(hex)') seems to be unpredictable when the number of hex digits approaches 16, for some it works and for some it doesn't.&amp;nbsp; I put different numbers into your inline load statement and managed to repeat my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my testing the Num# output typically has the same first 13 hex digits as the source but some or all of the last (least significant) three are different.&amp;nbsp; I can't see how to attach my modified qvw to this reply (can you advise?) so here is the load statement.&amp;nbsp; With this data your "Num# (hex)" list box only has 3 values, those ending in 2b, 30 and f0.&amp;nbsp; The other numbers from the source were translated by Num# into one of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD&lt;BR /&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HexVal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '(hex)') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;T1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;HexVal&lt;BR /&gt;006f024ff64d3a2b&lt;BR /&gt;006f024ff64d3a2c&lt;BR /&gt;006f024ff64d3a2d&lt;BR /&gt;006f024ff64d3a30&lt;BR /&gt;006f024ff64d3a31&lt;BR /&gt;fffffffffffffff0&lt;BR /&gt;fffffffffffffff1&lt;BR /&gt;fffffffffffffff2&lt;BR /&gt;fffffffffffffff3&lt;BR /&gt;fffffffffffffff4&lt;BR /&gt;fffffffffffffff5&lt;BR /&gt;fffffffffffffff6&lt;BR /&gt;fffffffffffffff7&lt;BR /&gt;fffffffffffffff8&lt;BR /&gt;fffffffffffffff9&lt;BR /&gt;fffffffffffffffa&lt;BR /&gt;fffffffffffffffb&lt;BR /&gt;fffffffffffffffc&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 09:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719585#M1055568</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2014-10-14T09:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem interpreting 16 digit Hex key.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719586#M1055571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After further testing I have come to two conclusions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A -&amp;gt; Z sorting of strings appears to have a bug(feature?) where a substring "0m" sorts after "n" for m&amp;gt;n.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eg: the following strings sort in the order shown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f1f&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When they should sort: f02, f03, f1f, f2a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Num#(HexVal,'(hex)') is limited by the storage used for integers which appears to be 64 bits.&amp;nbsp; A 16 digit hex number = 64 bits + sign etc so the limit, if 64 bit integer storage is used, would be less than 16 digits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 04:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-interpreting-16-digit-Hex-key/m-p/719586#M1055571</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2014-10-15T04:08:51Z</dc:date>
    </item>
  </channel>
</rss>

