<?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 Hexadecimal to Decimal, how? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147297#M25736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, have a hex value is causeing me trouble also.&lt;/P&gt;&lt;P&gt;When i set my 'value' as E0 it just stops.&lt;/P&gt;&lt;P&gt;I can do this converstion during my load script or after, either is ok for this project.&lt;/P&gt;&lt;P&gt;I'm suprised there is'nt a function like Dec2Hex or similar, i might end up making a lookup table with 255 rows of data with the hex value from 00 to FF and its decimal equivelant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2009 23:12:37 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2009-06-19T23:12:37Z</dc:date>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147295#M25734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Real simple question, but how do you convert a HEX value to a Decimal value in QV?&lt;/P&gt;&lt;P&gt;E.g&lt;/P&gt;&lt;P&gt;Hex E0 should be Decimal 224&lt;/P&gt;&lt;P&gt;I know i can do this the other way around and convert decimal to hex with num(224,'(hex)'), but not the other way around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 22:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147295#M25734</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-06-19T22:21:34Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147296#M25735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do it in your load script or does it need to be a QlikView function?&lt;/P&gt;&lt;P&gt;In PLSQL, you could use: CONVERT(Field, INT, 0xFFFFFF) or Val("&amp;amp;h" &amp;amp; Field). I wasn't able to test these as I don't have any tables with hex values. I'm guessing there are similar methods in TSQL.&lt;/P&gt;&lt;P&gt;As for QlikView, it seems like you should be able to do it using the num function. To convert to a decimal, you would use: Num(Value, '(R10)'). Unfortunately, that function doesn't like it when you use letters in the value. The function can convert from hex to decimal though as you can see by doing something like: Num(Num(224, '(hex)'), '(R10)'). This will result in 224, so the function is converted to hex and back using only the Num function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 22:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147296#M25735</guid>
      <dc:creator />
      <dc:date>2009-06-19T22:47:35Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147297#M25736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, have a hex value is causeing me trouble also.&lt;/P&gt;&lt;P&gt;When i set my 'value' as E0 it just stops.&lt;/P&gt;&lt;P&gt;I can do this converstion during my load script or after, either is ok for this project.&lt;/P&gt;&lt;P&gt;I'm suprised there is'nt a function like Dec2Hex or similar, i might end up making a lookup table with 255 rows of data with the hex value from 00 to FF and its decimal equivelant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 23:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147297#M25736</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-06-19T23:12:37Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147298#M25737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you loading from a QVD or straight from a database?&lt;/P&gt;&lt;P&gt;I am also surprised that there is not a function, probably more surprised that the Num function doesn't seem to work as that seems to be the way to do it.&lt;/P&gt;&lt;P&gt;A lookup table is a pretty good idea, as it would be a one time thing. You could probably download a list somewhere, so you wouldn't need to manually build it. Although, it may get tricky if you have values greater than 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 23:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147298#M25737</guid>
      <dc:creator />
      <dc:date>2009-06-19T23:19:52Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147299#M25738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;PeterAtMAC wrote: Real simple question, but how do you convert a HEX value to a Decimal value in QV?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;=num(num#('E0','(HEX)'))&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 00:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147299#M25738</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-06-20T00:27:09Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147300#M25739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice, that does it. So you're converting a string to a hex and then a hex to the integer. I tried the Num#, but when it gave me E0, I thought it wasn't working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 00:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147300#M25739</guid>
      <dc:creator />
      <dc:date>2009-06-20T00:37:23Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147301#M25740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good exercise to understand the subtlties of internal numbers and external representation.&lt;/P&gt;&lt;P&gt;The num#() function allows the E0 string number to be read correctly as a hexadecimal number. At this point it is "converted". That is, it is stored internally as a number. It can be used in arithmetic.&lt;/P&gt;&lt;P&gt;The default output format is still HEX. The num() function changes the display format to decimal, but doesn't change the internal representation of the number.&lt;/P&gt;&lt;P&gt;It's useful to know that the default output of an expression will be decimal. So all of these will display as decimal 224:&lt;/P&gt;&lt;P&gt;=num#('E0','(HEX)')+0&lt;BR /&gt;=floor(num#('E0','(HEX)'))&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 01:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147301#M25740</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-06-20T01:00:52Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147302#M25741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i made a simple function to do this conversion just for fun &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;P&gt;Can you test with your data?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 01:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147302#M25741</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-06-20T01:10:24Z</dc:date>
    </item>
    <item>
      <title>Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147303#M25742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;if i understand correctly then after using the num# i get qlikview to store the string as number&lt;/P&gt;&lt;P&gt;but does it store it as decimal number? i am not talking about the format&lt;/P&gt;&lt;P&gt;i have a string that contains hexa numbers (2 digit numbers) that i need to convert each pair into decimal and then use this number with the chr() function to find the corresponding ascii letter&lt;/P&gt;&lt;P&gt;when i use format option to convert the number to dec it does not pass a dec value to the chr() function because inside its still kept as hexa&lt;/P&gt;&lt;P&gt;am i correct?&lt;/P&gt;&lt;P&gt;is there a work around?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 08:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147303#M25742</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2011-03-29T08:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147304#M25743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx, Hector! Although it's almost 7 years old, your post came in very handy!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 08:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147304#M25743</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2016-02-02T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hexadecimal to Decimal, how?</title>
      <link>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147305#M25744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks hector.&lt;/P&gt;&lt;P&gt;The challenge I have is a little more complicated because the numeric result is expressed in base "e", and I need to display all the numbers, any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="318"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="192"&gt;56046B610A45CFA548A2121B50494E&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="126"&gt;4,4662716691826e+035&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hexadecimal-to-Decimal-how/m-p/147305#M25744</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2016-07-21T14:08:26Z</dc:date>
    </item>
  </channel>
</rss>

