<?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 QlikView treats 'numeric' strings as numeric?? HELP! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224227#M715077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm tearing my hair out trying to solve a problem with QlikView maybe being too clever for its own good.&lt;/P&gt;&lt;P&gt;I'm trying to get data out of an Oracle database via ODBC which has as its candidate key a character account code (CONSUMERID - defined as CHAR(8)) but which frequently has "numeric" values.&lt;/P&gt;&lt;P&gt;So I do (after defining the ODBC connection)&lt;/P&gt;&lt;P&gt;SQL SELECT CONSUMER.CONSUMERID, ...&lt;/P&gt;&lt;P&gt;FROM CONSUMER;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For account codes that are similar but have different numbers of zeroes and/or spaces at the beginning, QlikView seems to think that all records have the same account code (randomly, it seems whichever one QlikView finds first it keeps).&lt;/P&gt;&lt;P&gt;ie " 033971 " and "033971 " and "33971 " are all treated as "33971 ".&lt;/P&gt;&lt;P&gt;This is confirmed when I try something like&lt;/P&gt;&lt;P&gt;SQL SELECT CONSUMER.CONSUMERID, TRANSLATE(CONSUMER.CONSUMERID, ' ', '!') AS CONSUMERID_ALT, ...&lt;/P&gt;&lt;P&gt;FROM CONSUMER;&lt;/P&gt;&lt;P&gt;Then I get:&lt;/P&gt;&lt;P&gt;CONSUMERID CONSUMERID_ALT&lt;/P&gt;&lt;P&gt;33971 !033971!&lt;/P&gt;&lt;P&gt;33971 033971!!&lt;/P&gt;&lt;P&gt;33971 33971!!!&lt;/P&gt;&lt;P&gt;How do I get QlikView to extract the exact CHARACTER value of CONSUMERID ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2010 13:36:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-27T13:36:49Z</dc:date>
    <item>
      <title>QlikView treats 'numeric' strings as numeric?? HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224227#M715077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm tearing my hair out trying to solve a problem with QlikView maybe being too clever for its own good.&lt;/P&gt;&lt;P&gt;I'm trying to get data out of an Oracle database via ODBC which has as its candidate key a character account code (CONSUMERID - defined as CHAR(8)) but which frequently has "numeric" values.&lt;/P&gt;&lt;P&gt;So I do (after defining the ODBC connection)&lt;/P&gt;&lt;P&gt;SQL SELECT CONSUMER.CONSUMERID, ...&lt;/P&gt;&lt;P&gt;FROM CONSUMER;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For account codes that are similar but have different numbers of zeroes and/or spaces at the beginning, QlikView seems to think that all records have the same account code (randomly, it seems whichever one QlikView finds first it keeps).&lt;/P&gt;&lt;P&gt;ie " 033971 " and "033971 " and "33971 " are all treated as "33971 ".&lt;/P&gt;&lt;P&gt;This is confirmed when I try something like&lt;/P&gt;&lt;P&gt;SQL SELECT CONSUMER.CONSUMERID, TRANSLATE(CONSUMER.CONSUMERID, ' ', '!') AS CONSUMERID_ALT, ...&lt;/P&gt;&lt;P&gt;FROM CONSUMER;&lt;/P&gt;&lt;P&gt;Then I get:&lt;/P&gt;&lt;P&gt;CONSUMERID CONSUMERID_ALT&lt;/P&gt;&lt;P&gt;33971 !033971!&lt;/P&gt;&lt;P&gt;33971 033971!!&lt;/P&gt;&lt;P&gt;33971 33971!!!&lt;/P&gt;&lt;P&gt;How do I get QlikView to extract the exact CHARACTER value of CONSUMERID ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 13:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224227#M715077</guid>
      <dc:creator />
      <dc:date>2010-01-27T13:36:49Z</dc:date>
    </item>
    <item>
      <title>QlikView treats 'numeric' strings as numeric?? HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224228#M715078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Certainly, these things happen in QlikView. Do something like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD TEXT(CONSUMERID) AS CONSUMERID; SQL SELECT CONSUMER.CONSUMERID FROM CONSUMER;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Load wizard in the bottom part of the script editor may help you adding all fields to a LOAD clause. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 13:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224228#M715078</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-01-27T13:40:33Z</dc:date>
    </item>
    <item>
      <title>QlikView treats 'numeric' strings as numeric?? HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224229#M715079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this, it works, but it still cannot tell the difference between an account code of&lt;/P&gt;&lt;P&gt;" 033971 " (with leading space)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;"033971 " (without leading space)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I make sure that it did?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 14:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224229#M715079</guid>
      <dc:creator />
      <dc:date>2010-01-27T14:06:19Z</dc:date>
    </item>
    <item>
      <title>SV:Re: QlikView treats 'numeric' strings as numeric?? HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224230#M715080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you in the application also show the field as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;text(fieldname)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as there usually is another interpretation done when viewing the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 14:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224230#M715080</guid>
      <dc:creator />
      <dc:date>2010-01-27T14:09:57Z</dc:date>
    </item>
    <item>
      <title>QlikView treats 'numeric' strings as numeric?? HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224231#M715081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right in that Qlikview will see these values as the same and regard them all as the first variant it finds. The way forward is text(fieldname) to force it to text but you could also attach a non-numeric character to the data being retrieved via SQL (' 'X' &amp;amp; fieldname as Xfieldname)and then strip it off using substring (eg left, mid, right).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 15:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-treats-numeric-strings-as-numeric-HELP/m-p/224231#M715081</guid>
      <dc:creator />
      <dc:date>2010-01-27T15:05:40Z</dc:date>
    </item>
  </channel>
</rss>

