<?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: Convert numeric base90 to base10 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315991#M709995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By base 90, you mean that '15' should be converted to 1*90 + 5*1 = 95, and '321' to 3*90*90 + 2*90 + 1 = 24481?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What characters are you using once you get past digits 0-9?&amp;nbsp; I'm guessing A-Z, but that leaves a whole lot of characters to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure this is a good way, but you could make a map of your base 90 digits converted to base 10 value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Base90Map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Base90, Base10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1,1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2,2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;9,9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;A,10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;B,11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Z,35&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then apply the map to each digit of your input field using the appropriate power of 90:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,applymap('Base90Map',mid(Base90Input,1,1))*pow(90,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;+applymap('Base90Map',mid(Base90Input,2,1))*pow(90,1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;+applymap('Base90Map',mid(Base90Input,3,1))*pow(90,2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;+applymap('Base90Map',mid(Base90Input,4,1))*pow(90,3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;... as Base10Result&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 20:48:46 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-07-28T20:48:46Z</dc:date>
    <item>
      <title>Convert numeric base90 to base10</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315990#M709994</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 a legacy system that has numeric data stored in base90 in one of our tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to extract and convert to base10 (A bit easier to work with !!!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has any one done this before and if so what is the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Not sure if any relevence but the db that I am pulling from is Visual Foxpro using ODBC driver)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to any help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 20:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315990#M709994</guid>
      <dc:creator />
      <dc:date>2011-07-28T20:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric base90 to base10</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315991#M709995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By base 90, you mean that '15' should be converted to 1*90 + 5*1 = 95, and '321' to 3*90*90 + 2*90 + 1 = 24481?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What characters are you using once you get past digits 0-9?&amp;nbsp; I'm guessing A-Z, but that leaves a whole lot of characters to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure this is a good way, but you could make a map of your base 90 digits converted to base 10 value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Base90Map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Base90, Base10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1,1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2,2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;9,9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;A,10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;B,11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Z,35&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then apply the map to each digit of your input field using the appropriate power of 90:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,applymap('Base90Map',mid(Base90Input,1,1))*pow(90,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;+applymap('Base90Map',mid(Base90Input,2,1))*pow(90,1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;+applymap('Base90Map',mid(Base90Input,3,1))*pow(90,2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;+applymap('Base90Map',mid(Base90Input,4,1))*pow(90,3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;... as Base10Result&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 20:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315991#M709995</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-28T20:48:46Z</dc:date>
    </item>
    <item>
      <title>Convert numeric base90 to base10</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315992#M709996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The therory was perfect - JW what a star. &lt;/P&gt;&lt;P&gt;Took longer to work out the character set than write the script !!!!! &lt;/P&gt;&lt;P&gt;Only minor issue was the apply map did not work but nothing a left join didn't resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 15:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315992#M709996</guid>
      <dc:creator />
      <dc:date>2011-08-01T15:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric base90 to base10</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315993#M709997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like I was missing some closing parens (fixed above).&amp;nbsp; I'm not sure if that was the problem with the applymap, but left join is probably fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 16:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-numeric-base90-to-base10/m-p/315993#M709997</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-01T16:44:02Z</dc:date>
    </item>
  </channel>
</rss>

