<?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: Extract an number wich begin by an 0 as an string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815569#M668243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try num(customer_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 08:46:21 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-11-12T08:46:21Z</dc:date>
    <item>
      <title>Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815566#M668240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i met an problem i have in a customer table an strange id.&lt;/P&gt;&lt;P&gt;It s an number wich begins by 0 so for two customer :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer A&amp;nbsp; id = 133&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;customer B id =&amp;nbsp; 0133&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;customer C id =&amp;nbsp; 0133&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;But the problem is that qlikview, when i extract the data, considers that the id is an number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;So after the extraction of the data, i have in my qvd data the id for&amp;nbsp; the 3 customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;customer A id=133&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;customer B id =&amp;nbsp; 133&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;customer C id =&amp;nbsp; 133&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to fix that problem and to get qlikview consider the id as an string ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815566#M668240</guid>
      <dc:creator />
      <dc:date>2014-11-12T08:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815567#M668241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perform a Trim on the data field. Trim is a sting function so that should make the script engine interpret this as a sting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trim(CUSTOMERFIELD) as Customer Field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815567#M668241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-12T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815568#M668242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pierre, you need to use Text funtion in script, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Text(id) as id&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815568#M668242</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-12T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815569#M668243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try num(customer_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815569#M668243</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-11-12T08:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815570#M668244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to consider why you want these fields as a sting in the first case. Perhaps you should force them all to numbers (by multiplying them).&lt;/P&gt;&lt;P&gt;Putting these ID's as numbers will allow you to do more with them in certain cases (like selecting a range between ID numbers etc)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815570#M668244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-12T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815571#M668245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Hamish Imrie wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You might want to consider why you want these fields as a sting in the first case. Perhaps you should force them all to numbers (by multiplying them).&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless of course there is genuinely a difference between code 0133 and 133. Then using text() is the correct approach as posted above by Ruben.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815571#M668245</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-12T08:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815572#M668246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True Jonathan, that might be the case (I have seen some of these bad examples....).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815572#M668246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-12T08:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815573#M668247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;thank for all the replys,&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;I try to put &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Text(id) as id .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt; it seems working cause i ve an id as an string as you can see :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="id.png" class="jive-image" height="257" src="https://community.qlik.com/legacyfs/online/71722_id.png" style="width: 129px; height: 257.116438356164px;" width="129" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; 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: 13.3333339691162px; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;But it's very strange cause&lt;/SPAN&gt; i ve met some problem for some id wich begins by an 0&amp;nbsp; and not for the others.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;For example, i ve&amp;nbsp; two No. differents&amp;nbsp; in the database &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;No.= '0138' for record 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;No.='138'&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt; for record&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;and in my QVD or qvw i find only the No.=138 for the two record&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Do you have any idea how i could solve this strange issue&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 13:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815573#M668247</guid>
      <dc:creator />
      <dc:date>2014-11-20T13:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract an number wich begin by an 0 as an string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815574#M668248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, QV always try to convernt data to number, so in a normal load, 0138 and 138 are both stored as the number 138, when creating the qvd you need to specify Text function to keep it in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to apply the Text() Function when you are creating the qvd.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 14:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-an-number-wich-begin-by-an-0-as-an-string/m-p/815574#M668248</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-20T14:03:57Z</dc:date>
    </item>
  </channel>
</rss>

